add IVYZ7F3A
This commit is contained in:
		| @@ -198,6 +198,7 @@ var requestProcessors = map[string]func(*ApiRequestService, []byte) ([]byte, err | ||||
| 	"JRZQ5E9F":            (*ApiRequestService).ProcessJRZQ5E9FRequest, | ||||
| 	"QYGL3F8E":            (*ApiRequestService).ProcessQYGL3F8ERequest, | ||||
| 	"IVYZ81NC":            (*ApiRequestService).ProcessIVYZ81NCRequest, | ||||
| 	"IVYZ7F3A":            (*ApiRequestService).ProcessIVYZ7F3ARequest, | ||||
| } | ||||
|  | ||||
| // PreprocessRequestApi 调用指定的请求处理函数 | ||||
| @@ -1394,3 +1395,25 @@ func (a *ApiRequestService) ProcessIVYZ81NCRequest(params []byte) ([]byte, error | ||||
| 	// 直接返回解密后的数据,而不是再次进行JSON编码 | ||||
| 	return convertTianyuanResponse(resp) | ||||
| } | ||||
|  | ||||
| // ProcessIVYZ7F3ARequest 学历查询版B | ||||
| func (a *ApiRequestService) ProcessIVYZ7F3ARequest(params []byte) ([]byte, error) { | ||||
| 	idCard := gjson.GetBytes(params, "id_card") | ||||
| 	name := gjson.GetBytes(params, "name") | ||||
| 	if !idCard.Exists() || !name.Exists() { | ||||
| 		return nil, errors.New("api请求, IVYZ7F3A, 获取相关参数失败") | ||||
| 	} | ||||
|  | ||||
| 	resp, err := a.tianyuanapi.CallInterface("IVYZ7F3A", map[string]interface{}{ | ||||
| 		"id_card":    idCard.String(), | ||||
| 		"name":       name.String(), | ||||
| 		"authorized": "1", | ||||
| 	}) | ||||
|  | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
|  | ||||
| 	// 直接返回解密后的数据,而不是再次进行JSON编码 | ||||
| 	return convertTianyuanResponse(resp) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user