Merge branch 'develop' of git.ailuowan.com:zzw/lone-services into develop
CI / changes (push) Successful in 2s
CI / docker-bff (push) Successful in 3m3s
CI / docker-product (push) Successful in 3m24s
CI / docker-admin (push) Successful in 3m26s

This commit is contained in:
2026-08-14 11:46:15 +08:00
26 changed files with 2199 additions and 204 deletions
BIN
View File
Binary file not shown.
+4 -1
View File
@@ -34,12 +34,15 @@ func (b *BaseController) OutPut(w http.ResponseWriter, code int32, data any, msg
if code == utils.Ok.Code && !utils.GetConfigBool("encrypt.debug") {
jsonData, err := json.Marshal(data)
if err != nil {
fmt.Printf("response encrypt: json.Marshal failed: %v\n", err)
msg = utils.ErrorEncryptAesError.Msg
code = utils.ErrorEncryptAesError.Code
} else {
key := utils.GetConfigString("encrypt.encrypt_key")
res, enErr := utils.Crypto{}.Encrypt(jsonData)
fmt.Printf("res: %v\n", res)
if enErr != nil {
fmt.Printf("response encrypt failed: keyLen=%d keyEmpty=%v errCode=%d errMsg=%s\n",
len(key), key == "", enErr.GetCode(), enErr.GetMsg())
msg = utils.ErrorEncryptAesError.Msg
code = utils.ErrorEncryptAesError.Code
} else {