f
This commit is contained in:
@@ -264,7 +264,22 @@ func (s *CertificationApplicationServiceImpl) SubmitEnterpriseInfo(
|
|||||||
|
|
||||||
// 4. 提交企业信息:暂时跳过人工审核,直接进入「已提交」状态(第三步企业认证)
|
// 4. 提交企业信息:暂时跳过人工审核,直接进入「已提交」状态(第三步企业认证)
|
||||||
// 恢复人工审核时改为 cert.SubmitEnterpriseInfoForReview(enterpriseInfo),并将 next_action 改为「请等待管理员审核企业信息」
|
// 恢复人工审核时改为 cert.SubmitEnterpriseInfoForReview(enterpriseInfo),并将 next_action 改为「请等待管理员审核企业信息」
|
||||||
err = cert.SubmitEnterpriseInfo(enterpriseInfo, "", "")
|
|
||||||
|
// 生成企业认证链接
|
||||||
|
authURL, err := s.esignClient.GenerateEnterpriseAuth(&esign.EnterpriseAuthRequest{
|
||||||
|
CompanyName: enterpriseInfo.CompanyName,
|
||||||
|
UnifiedSocialCode: enterpriseInfo.UnifiedSocialCode,
|
||||||
|
LegalPersonName: enterpriseInfo.LegalPersonName,
|
||||||
|
LegalPersonID: enterpriseInfo.LegalPersonID,
|
||||||
|
TransactorName: enterpriseInfo.LegalPersonName,
|
||||||
|
TransactorMobile: enterpriseInfo.LegalPersonPhone,
|
||||||
|
TransactorID: enterpriseInfo.LegalPersonID,
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("生成企业认证链接失败: %w", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
err = cert.SubmitEnterpriseInfo(enterpriseInfo, authURL.AuthShortURL, authURL.AuthFlowID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("提交企业信息失败: %s", err.Error())
|
return fmt.Errorf("提交企业信息失败: %s", err.Error())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user