修正婚姻接口
This commit is contained in:
parent
2dd86de9b3
commit
0863190e01
@ -93,6 +93,16 @@ func (l *IVYZ5733Logic) IVYZ5733(req *types.Request) (resp string, err *errs.App
|
|||||||
westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G09SC02", apiRequest, l.svcCtx.Config.WestConfig.SecretId)
|
westResp, callAPIErr := l.svcCtx.WestDexService.CallAPI("G09SC02", apiRequest, l.svcCtx.Config.WestConfig.SecretId)
|
||||||
if callAPIErr != nil {
|
if callAPIErr != nil {
|
||||||
if callAPIErr.Code == errs.ErrDataSource.Code {
|
if callAPIErr.Code == errs.ErrDataSource.Code {
|
||||||
|
encryptData, aesEncrypt := crypto.AesEncrypt(westResp, key)
|
||||||
|
if aesEncrypt != nil {
|
||||||
|
return "", errs.ErrSystem
|
||||||
|
}
|
||||||
|
|
||||||
|
return encryptData, callAPIErr
|
||||||
|
}
|
||||||
|
return "", callAPIErr
|
||||||
|
}
|
||||||
|
|
||||||
encryptData, aesEncrypt := crypto.AesEncrypt(westResp, key)
|
encryptData, aesEncrypt := crypto.AesEncrypt(westResp, key)
|
||||||
if aesEncrypt != nil {
|
if aesEncrypt != nil {
|
||||||
return "", errs.ErrSystem
|
return "", errs.ErrSystem
|
||||||
@ -115,15 +125,5 @@ func (l *IVYZ5733Logic) IVYZ5733(req *types.Request) (resp string, err *errs.App
|
|||||||
if maritalStatus == nil {
|
if maritalStatus == nil {
|
||||||
return "", errs.ErrSystem
|
return "", errs.ErrSystem
|
||||||
}
|
}
|
||||||
|
|
||||||
return encryptData, callAPIErr
|
|
||||||
}
|
|
||||||
return "", callAPIErr
|
|
||||||
}
|
|
||||||
|
|
||||||
encryptData, aesEncrypt := crypto.AesEncrypt(westResp, key)
|
|
||||||
if aesEncrypt != nil {
|
|
||||||
return "", errs.ErrSystem
|
|
||||||
}
|
|
||||||
return encryptData, nil
|
return encryptData, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user