修改自定义错误判断方式

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

@@ -93,7 +93,7 @@ func (l *YYSY6F2ELogic) YYSY6F2E(req *types.Request) (resp string, err *errs.App
westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G15BJ02", 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