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