diff --git a/internal/domains/certification/services/enterprise_info_submit_record_service.go b/internal/domains/certification/services/enterprise_info_submit_record_service.go index 1c3e00f..6f7f998 100644 --- a/internal/domains/certification/services/enterprise_info_submit_record_service.go +++ b/internal/domains/certification/services/enterprise_info_submit_record_service.go @@ -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("校验企业信息错误") }