1、response修改 2、负数扣款

This commit is contained in:
2024-10-15 20:52:51 +08:00
parent 8c14915955
commit d63d70847b
67 changed files with 368 additions and 202 deletions

View File

@@ -92,7 +92,14 @@ func (l *YYSY4B21Logic) YYSY4B21(req *types.Request) (resp string, err *errs.App
westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G25BJ02", apiRequest)
if callAPIErr != nil {
return "", errs.ErrSystem
if callAPIErr == errs.ErrDataSource {
encryptData, aesEncrypt := crypto.AesEncrypt(westResp, key)
if aesEncrypt != nil {
return "", errs.ErrSystem
}
return encryptData, callAPIErr
}
return "", callAPIErr
}
encryptData, aesEncrypt := crypto.AesEncrypt(westResp, key)