feat(session): 重构会话管理和Redis缓存机制
This commit is contained in:
@@ -27,7 +27,6 @@ func ParseAndValidate(raw map[string]any, model *entity.AsynchModel) (map[string
|
|||||||
if !ok {
|
if !ok {
|
||||||
return raw, fmt.Errorf("字段 %s 不存在", model.ResponseBody)
|
return raw, fmt.Errorf("字段 %s 不存在", model.ResponseBody)
|
||||||
}
|
}
|
||||||
fmt.Println("model.ResponseBody打印", model.ResponseBody)
|
|
||||||
contentStr, ok := contentVal.(string)
|
contentStr, ok := contentVal.(string)
|
||||||
if !ok || strings.TrimSpace(contentStr) == "" {
|
if !ok || strings.TrimSpace(contentStr) == "" {
|
||||||
return raw, fmt.Errorf("字段 %s 为空或不是字符串", model.ResponseBody)
|
return raw, fmt.Errorf("字段 %s 为空或不是字符串", model.ResponseBody)
|
||||||
|
|||||||
@@ -50,14 +50,14 @@ database:
|
|||||||
|
|
||||||
redis:
|
redis:
|
||||||
default:
|
default:
|
||||||
address: 116.204.74.41:6379
|
address: 192.168.3.30:6379
|
||||||
db: 0
|
db: 0
|
||||||
|
|
||||||
consul:
|
consul:
|
||||||
address: 116.204.74.41:8500
|
address: 192.168.3.30:8500
|
||||||
|
|
||||||
jaeger:
|
jaeger:
|
||||||
addr: 116.204.74.41:4318
|
addr: 192.168.3.30:4318
|
||||||
|
|
||||||
# 本地调试用:可选自动执行 worker/cleaner(默认关闭)
|
# 本地调试用:可选自动执行 worker/cleaner(默认关闭)
|
||||||
asynch:
|
asynch:
|
||||||
|
|||||||
Reference in New Issue
Block a user