fix
This commit is contained in:
@@ -35,14 +35,14 @@ func ProcessQCXG9P1CRequest(ctx context.Context, params []byte, deps *processors
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Join(processors.ErrSystem, err)
|
return nil, errors.Join(processors.ErrSystem, err)
|
||||||
}
|
}
|
||||||
reqData["data"].(map[string]interface{})["name"] = encryptedName
|
reqData["name"] = encryptedName
|
||||||
}
|
}
|
||||||
// 如果传了 vehicleType,则添加到请求数据中
|
// 如果传了 vehicleType,则添加到请求数据中
|
||||||
if paramsDto.VehicleType != "" {
|
if paramsDto.VehicleType != "" {
|
||||||
reqData["data"].(map[string]interface{})["vehicleType"] = paramsDto.VehicleType
|
reqData["vehicleType"] = paramsDto.VehicleType
|
||||||
}
|
}
|
||||||
if paramsDto.UserType != "" {
|
if paramsDto.UserType != "" {
|
||||||
reqData["data"].(map[string]interface{})["userType"] = paramsDto.UserType
|
reqData["userType"] = paramsDto.UserType
|
||||||
}
|
}
|
||||||
|
|
||||||
respData, err := deps.ZhichaService.CallAPI(ctx, "ZCI051", reqData)
|
respData, err := deps.ZhichaService.CallAPI(ctx, "ZCI051", reqData)
|
||||||
|
|||||||
Reference in New Issue
Block a user