ws update

This commit is contained in:
Gordon
2023-03-23 15:14:50 +08:00
parent 6382528360
commit e08a127213
5 changed files with 55 additions and 15 deletions
+10
View File
@@ -72,6 +72,16 @@ func GetTriggerID(ctx context.Context) string {
}
return ""
}
func GetOpUserPlatform(ctx context.Context) string {
if ctx.Value(constant.OpUserPlatform) != "" {
s, ok := ctx.Value(constant.OpUserPlatform).(string)
if ok {
return s
}
}
return ""
}
func GetMustCtxInfo(ctx context.Context) (operationID, opUserID, platform, connID string, err error) {
operationID, ok := ctx.Value(constant.OperationID).(string)
if !ok {