This commit is contained in:
2025-08-20 12:31:54 +08:00
parent 8cd28537e9
commit 91be5bd1e8

View File

@@ -206,7 +206,7 @@ func (a *ApiRequestService) PreprocessRequestApi(params []byte, apiID string) ([
func (a *ApiRequestService) ProcessPersonEnterpriseProRequest(params []byte) ([]byte, error) {
idCard := gjson.GetBytes(params, "id_card")
// 设置最大调用次数上限
maxApiCalls := 10 // 允许最多查询10个企业
maxApiCalls := 20 // 允许最多查询20个企业
if !idCard.Exists() {
return nil, errors.New("api请求, PersonEnterprisePro, 获取相关参数失败")
@@ -417,6 +417,7 @@ func (a *ApiRequestService) ProcessPersonEnterpriseProRequest(params []byte) ([]
lawsuitResp, err := a.tianyuanapi.CallInterface("QYGL8271", map[string]interface{}{
"ent_name": orgName.String(),
"ent_code": creditCode.String(),
"auth_date": generateAuthDateRange(),
})
// 无论是否有错误,都继续处理
if err != nil {
@@ -987,6 +988,7 @@ func (a *ApiRequestService) ProcessQYGL8271Request(params []byte) ([]byte, error
resp, err := a.tianyuanapi.CallInterface("QYGL8271", map[string]interface{}{
"ent_name": entName.String(),
"ent_code": entCode.String(),
"auth_date": generateAuthDateRange(),
})
if err != nil {