From aa52e311bedcec44586a3ffe6db59719e6f45b0f Mon Sep 17 00:00:00 2001 From: liangzai <2440983361@qq.com> Date: Mon, 21 Oct 2024 23:54:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=88=A4=E6=96=AD=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/api/internal/logic/FLXG/flxg162alogic.go | 2 +- apps/api/internal/logic/FLXG/flxg3d56logic.go | 2 +- apps/api/internal/logic/FLXG/flxg54f5logic.go | 2 +- apps/api/internal/logic/FLXG/flxg5876logic.go | 2 +- apps/api/internal/logic/FLXG/flxg9687logic.go | 2 +- apps/api/internal/logic/FLXG/flxg970flogic.go | 2 +- apps/api/internal/logic/FLXG/flxgc9d1logic.go | 2 +- apps/api/internal/logic/FLXG/flxgca3dlogic.go | 2 +- apps/api/internal/logic/FLXG/flxgdec7logic.go | 2 +- apps/api/internal/logic/IVYZ/ivyz385elogic.go | 2 +- apps/api/internal/logic/IVYZ/ivyz5733logic.go | 2 +- apps/api/internal/logic/IVYZ/ivyz9363logic.go | 2 +- apps/api/internal/logic/JRZQ/jrzq0a03logic.go | 2 +- apps/api/internal/logic/JRZQ/jrzq4aa8logic.go | 2 +- apps/api/internal/logic/JRZQ/jrzq8203logic.go | 2 +- apps/api/internal/logic/JRZQ/jrzqdcbelogic.go | 2 +- apps/api/internal/logic/QYGL/qygl2acdlogic.go | 2 +- apps/api/internal/logic/QYGL/qygl45bdlogic.go | 2 +- apps/api/internal/logic/QYGL/qygl6f2dlogic.go | 2 +- apps/api/internal/logic/QYGL/qygl8261logic.go | 2 +- apps/api/internal/logic/QYGL/qyglb4c0logic.go | 2 +- apps/api/internal/logic/YYSY/yysy09cdlogic.go | 2 +- apps/api/internal/logic/YYSY/yysy4b21logic.go | 2 +- apps/api/internal/logic/YYSY/yysy4b37logic.go | 2 +- apps/api/internal/logic/YYSY/yysy6f2elogic.go | 2 +- apps/api/internal/logic/YYSY/yysybe08logic.go | 2 +- apps/api/internal/logic/YYSY/yysyd50flogic.go | 2 +- apps/api/internal/logic/YYSY/yysyf7dblogic.go | 2 +- 28 files changed, 28 insertions(+), 28 deletions(-) diff --git a/apps/api/internal/logic/FLXG/flxg162alogic.go b/apps/api/internal/logic/FLXG/flxg162alogic.go index dfa98a4..5c2673a 100644 --- a/apps/api/internal/logic/FLXG/flxg162alogic.go +++ b/apps/api/internal/logic/FLXG/flxg162alogic.go @@ -92,7 +92,7 @@ func (l *FLXG162ALogic) FLXG162A(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G32BJ05", 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 diff --git a/apps/api/internal/logic/FLXG/flxg3d56logic.go b/apps/api/internal/logic/FLXG/flxg3d56logic.go index cfa53ff..5e4bbfc 100644 --- a/apps/api/internal/logic/FLXG/flxg3d56logic.go +++ b/apps/api/internal/logic/FLXG/flxg3d56logic.go @@ -94,7 +94,7 @@ func (l *FLXG3D56Logic) FLXG3D56(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G26BJ05", 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 diff --git a/apps/api/internal/logic/FLXG/flxg54f5logic.go b/apps/api/internal/logic/FLXG/flxg54f5logic.go index 5ed8918..6736aa2 100644 --- a/apps/api/internal/logic/FLXG/flxg54f5logic.go +++ b/apps/api/internal/logic/FLXG/flxg54f5logic.go @@ -92,7 +92,7 @@ func (l *FLXG54F5Logic) FLXG54F5(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G03HZ01", 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 diff --git a/apps/api/internal/logic/FLXG/flxg5876logic.go b/apps/api/internal/logic/FLXG/flxg5876logic.go index 3a8a633..30a9da1 100644 --- a/apps/api/internal/logic/FLXG/flxg5876logic.go +++ b/apps/api/internal/logic/FLXG/flxg5876logic.go @@ -92,7 +92,7 @@ func (l *FLXG5876Logic) FLXG5876(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G03XM02", 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 diff --git a/apps/api/internal/logic/FLXG/flxg9687logic.go b/apps/api/internal/logic/FLXG/flxg9687logic.go index 092e18f..758fc24 100644 --- a/apps/api/internal/logic/FLXG/flxg9687logic.go +++ b/apps/api/internal/logic/FLXG/flxg9687logic.go @@ -92,7 +92,7 @@ func (l *FLXG9687Logic) FLXG9687(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G31BJ05", 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 diff --git a/apps/api/internal/logic/FLXG/flxg970flogic.go b/apps/api/internal/logic/FLXG/flxg970flogic.go index fb2544c..c99f67f 100644 --- a/apps/api/internal/logic/FLXG/flxg970flogic.go +++ b/apps/api/internal/logic/FLXG/flxg970flogic.go @@ -92,7 +92,7 @@ func (l *FLXG970FLogic) FLXG970F(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("WEST00028", 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 diff --git a/apps/api/internal/logic/FLXG/flxgc9d1logic.go b/apps/api/internal/logic/FLXG/flxgc9d1logic.go index 56cdf22..fa82311 100644 --- a/apps/api/internal/logic/FLXG/flxgc9d1logic.go +++ b/apps/api/internal/logic/FLXG/flxgc9d1logic.go @@ -92,7 +92,7 @@ func (l *FLXGC9D1Logic) FLXGC9D1(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G30BJ05", 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 diff --git a/apps/api/internal/logic/FLXG/flxgca3dlogic.go b/apps/api/internal/logic/FLXG/flxgca3dlogic.go index e3986ac..4fa5d29 100644 --- a/apps/api/internal/logic/FLXG/flxgca3dlogic.go +++ b/apps/api/internal/logic/FLXG/flxgca3dlogic.go @@ -92,7 +92,7 @@ func (l *FLXGCA3DLogic) FLXGCA3D(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G22BJ03", 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 diff --git a/apps/api/internal/logic/FLXG/flxgdec7logic.go b/apps/api/internal/logic/FLXG/flxgdec7logic.go index 585ca90..c728414 100644 --- a/apps/api/internal/logic/FLXG/flxgdec7logic.go +++ b/apps/api/internal/logic/FLXG/flxgdec7logic.go @@ -92,7 +92,7 @@ func (l *FLXGDEC7Logic) FLXGDEC7(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G23BJ03", 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 diff --git a/apps/api/internal/logic/IVYZ/ivyz385elogic.go b/apps/api/internal/logic/IVYZ/ivyz385elogic.go index 782c522..b77c5a2 100644 --- a/apps/api/internal/logic/IVYZ/ivyz385elogic.go +++ b/apps/api/internal/logic/IVYZ/ivyz385elogic.go @@ -92,7 +92,7 @@ func (l *IVYZ385ELogic) IVYZ385E(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("WEST00020", 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 diff --git a/apps/api/internal/logic/IVYZ/ivyz5733logic.go b/apps/api/internal/logic/IVYZ/ivyz5733logic.go index 34b0faf..4882abb 100644 --- a/apps/api/internal/logic/IVYZ/ivyz5733logic.go +++ b/apps/api/internal/logic/IVYZ/ivyz5733logic.go @@ -91,7 +91,7 @@ func (l *IVYZ5733Logic) IVYZ5733(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G09GX01", 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 diff --git a/apps/api/internal/logic/IVYZ/ivyz9363logic.go b/apps/api/internal/logic/IVYZ/ivyz9363logic.go index e11d202..e356f59 100644 --- a/apps/api/internal/logic/IVYZ/ivyz9363logic.go +++ b/apps/api/internal/logic/IVYZ/ivyz9363logic.go @@ -92,7 +92,7 @@ func (l *IVYZ9363Logic) IVYZ9363(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G10GX01", 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 diff --git a/apps/api/internal/logic/JRZQ/jrzq0a03logic.go b/apps/api/internal/logic/JRZQ/jrzq0a03logic.go index 6fafa9b..b56e6e5 100644 --- a/apps/api/internal/logic/JRZQ/jrzq0a03logic.go +++ b/apps/api/internal/logic/JRZQ/jrzq0a03logic.go @@ -92,7 +92,7 @@ func (l *JRZQ0A03Logic) JRZQ0A03(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G27BJ05", 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 diff --git a/apps/api/internal/logic/JRZQ/jrzq4aa8logic.go b/apps/api/internal/logic/JRZQ/jrzq4aa8logic.go index f8308a3..5c8fc9f 100644 --- a/apps/api/internal/logic/JRZQ/jrzq4aa8logic.go +++ b/apps/api/internal/logic/JRZQ/jrzq4aa8logic.go @@ -92,7 +92,7 @@ func (l *JRZQ4AA8Logic) JRZQ4AA8(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G29BJ05", 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 diff --git a/apps/api/internal/logic/JRZQ/jrzq8203logic.go b/apps/api/internal/logic/JRZQ/jrzq8203logic.go index d2a0617..5a09db3 100644 --- a/apps/api/internal/logic/JRZQ/jrzq8203logic.go +++ b/apps/api/internal/logic/JRZQ/jrzq8203logic.go @@ -92,7 +92,7 @@ func (l *JRZQ8203Logic) JRZQ8203(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G28BJ05", 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 diff --git a/apps/api/internal/logic/JRZQ/jrzqdcbelogic.go b/apps/api/internal/logic/JRZQ/jrzqdcbelogic.go index c611c2e..b18dacc 100644 --- a/apps/api/internal/logic/JRZQ/jrzqdcbelogic.go +++ b/apps/api/internal/logic/JRZQ/jrzqdcbelogic.go @@ -92,7 +92,7 @@ func (l *JRZQDCBELogic) JRZQDCBE(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G20GZ01", 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 diff --git a/apps/api/internal/logic/QYGL/qygl2acdlogic.go b/apps/api/internal/logic/QYGL/qygl2acdlogic.go index 61bb8b7..87f8900 100644 --- a/apps/api/internal/logic/QYGL/qygl2acdlogic.go +++ b/apps/api/internal/logic/QYGL/qygl2acdlogic.go @@ -92,7 +92,7 @@ func (l *QYGL2ACDLogic) QYGL2ACD(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("WEST00022", 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 diff --git a/apps/api/internal/logic/QYGL/qygl45bdlogic.go b/apps/api/internal/logic/QYGL/qygl45bdlogic.go index 7dd2f6a..5e69902 100644 --- a/apps/api/internal/logic/QYGL/qygl45bdlogic.go +++ b/apps/api/internal/logic/QYGL/qygl45bdlogic.go @@ -92,7 +92,7 @@ func (l *QYGL45BDLogic) QYGL45BD(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("WEST00021", 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 diff --git a/apps/api/internal/logic/QYGL/qygl6f2dlogic.go b/apps/api/internal/logic/QYGL/qygl6f2dlogic.go index 640a667..c004dfa 100644 --- a/apps/api/internal/logic/QYGL/qygl6f2dlogic.go +++ b/apps/api/internal/logic/QYGL/qygl6f2dlogic.go @@ -92,7 +92,7 @@ func (l *QYGL6F2DLogic) QYGL6F2D(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G05XM02", 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 diff --git a/apps/api/internal/logic/QYGL/qygl8261logic.go b/apps/api/internal/logic/QYGL/qygl8261logic.go index b2a3330..3fff1e9 100644 --- a/apps/api/internal/logic/QYGL/qygl8261logic.go +++ b/apps/api/internal/logic/QYGL/qygl8261logic.go @@ -92,7 +92,7 @@ func (l *QYGL8261Logic) QYGL8261(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("Q03BJ03", 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 diff --git a/apps/api/internal/logic/QYGL/qyglb4c0logic.go b/apps/api/internal/logic/QYGL/qyglb4c0logic.go index e747688..b7928cd 100644 --- a/apps/api/internal/logic/QYGL/qyglb4c0logic.go +++ b/apps/api/internal/logic/QYGL/qyglb4c0logic.go @@ -92,7 +92,7 @@ func (l *QYGLB4C0Logic) QYGLB4C0(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G05HZ01", 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 diff --git a/apps/api/internal/logic/YYSY/yysy09cdlogic.go b/apps/api/internal/logic/YYSY/yysy09cdlogic.go index 8cdfa41..7713a63 100644 --- a/apps/api/internal/logic/YYSY/yysy09cdlogic.go +++ b/apps/api/internal/logic/YYSY/yysy09cdlogic.go @@ -93,7 +93,7 @@ func (l *YYSY09CDLogic) YYSY09CD(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G16BJ02", 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 diff --git a/apps/api/internal/logic/YYSY/yysy4b21logic.go b/apps/api/internal/logic/YYSY/yysy4b21logic.go index 5daf7fa..353b9d5 100644 --- a/apps/api/internal/logic/YYSY/yysy4b21logic.go +++ b/apps/api/internal/logic/YYSY/yysy4b21logic.go @@ -92,7 +92,7 @@ func (l *YYSY4B21Logic) YYSY4B21(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G25BJ02", 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 diff --git a/apps/api/internal/logic/YYSY/yysy4b37logic.go b/apps/api/internal/logic/YYSY/yysy4b37logic.go index 7149342..60fd4d1 100644 --- a/apps/api/internal/logic/YYSY/yysy4b37logic.go +++ b/apps/api/internal/logic/YYSY/yysy4b37logic.go @@ -92,7 +92,7 @@ func (l *YYSY4B37Logic) YYSY4B37(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G02BJ02", 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 diff --git a/apps/api/internal/logic/YYSY/yysy6f2elogic.go b/apps/api/internal/logic/YYSY/yysy6f2elogic.go index a19690d..8832431 100644 --- a/apps/api/internal/logic/YYSY/yysy6f2elogic.go +++ b/apps/api/internal/logic/YYSY/yysy6f2elogic.go @@ -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 diff --git a/apps/api/internal/logic/YYSY/yysybe08logic.go b/apps/api/internal/logic/YYSY/yysybe08logic.go index f12a7cb..683a88c 100644 --- a/apps/api/internal/logic/YYSY/yysybe08logic.go +++ b/apps/api/internal/logic/YYSY/yysybe08logic.go @@ -92,7 +92,7 @@ func (l *YYSYBE08Logic) YYSYBE08(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G17BJ02", 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 diff --git a/apps/api/internal/logic/YYSY/yysyd50flogic.go b/apps/api/internal/logic/YYSY/yysyd50flogic.go index dfbd453..c21142f 100644 --- a/apps/api/internal/logic/YYSY/yysyd50flogic.go +++ b/apps/api/internal/logic/YYSY/yysyd50flogic.go @@ -92,7 +92,7 @@ func (l *YYSYD50FLogic) YYSYD50F(req *types.Request) (resp string, err *errs.App westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G18BJ02", 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 diff --git a/apps/api/internal/logic/YYSY/yysyf7dblogic.go b/apps/api/internal/logic/YYSY/yysyf7dblogic.go index ffb51a1..6646ea5 100644 --- a/apps/api/internal/logic/YYSY/yysyf7dblogic.go +++ b/apps/api/internal/logic/YYSY/yysyf7dblogic.go @@ -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