f
This commit is contained in:
@@ -1456,3 +1456,24 @@ func (a *ApiRequestService) ProcessFLXG7E8FRequest(params []byte) ([]byte, error
|
|||||||
|
|
||||||
return convertTianyuanResponse(resp)
|
return convertTianyuanResponse(resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ProcessQCXG9P1CFRequest 名下车辆
|
||||||
|
func (a *ApiRequestService) ProcessQCXG9P1CFRequest(params []byte) ([]byte, error) {
|
||||||
|
idCard := gjson.GetBytes(params, "id_card")
|
||||||
|
name := gjson.GetBytes(params, "name")
|
||||||
|
mobile := gjson.GetBytes(params, "mobile")
|
||||||
|
if !idCard.Exists() || !name.Exists() || !mobile.Exists() {
|
||||||
|
return nil, errors.New("api请求, QCXG9P1C, 获取相关参数失败")
|
||||||
|
}
|
||||||
|
|
||||||
|
resp, err := a.tianyuanapi.CallInterface("QCXG9P1C", map[string]interface{}{
|
||||||
|
"id_card": idCard.String(),
|
||||||
|
"authorized": "1",
|
||||||
|
})
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return convertTianyuanResponse(resp)
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user