fix enterprise validate
This commit is contained in:
@@ -96,15 +96,8 @@ func (s *EnterpriseInfoSubmitRecordService) ValidateWithWestdex(ctx context.Cont
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
resultCode := gjson.GetBytes(resp, "code")
|
||||
if !resultCode.Exists() {
|
||||
return fmt.Errorf("校验企业信息错误")
|
||||
}
|
||||
if resultCode.String() != "00000" {
|
||||
return fmt.Errorf("校验企业信息错误")
|
||||
}
|
||||
|
||||
resultState := gjson.GetBytes(resp, "data.result.state")
|
||||
s.logger.Info("验证企业四要素响应", zap.Any("response", resp))
|
||||
resultState := gjson.GetBytes(resp, "result.state")
|
||||
if !resultState.Exists() {
|
||||
return fmt.Errorf("校验企业信息错误")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user