修改自定义错误判断方式

This commit is contained in:
2024-10-21 23:54:17 +08:00
parent c52213e49a
commit aa52e311be
28 changed files with 28 additions and 28 deletions

View File

@@ -90,7 +90,7 @@ func (l *YYSYF7DBLogic) YYSYF7DB(req *types.Request) (resp string, err *errs.App
westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G19BJ02", apiRequest)
if callAPIErr != nil {
if callAPIErr == errs.ErrDataSource {
if callAPIErr.Code == errs.ErrDataSource.Code {
encryptData, aesEncrypt := crypto.AesEncrypt(westResp, key)
if aesEncrypt != nil {
return "", errs.ErrSystem