This commit is contained in:
2025-10-17 18:40:02 +08:00
parent 96f22b4249
commit 3d3ca98eb7

View File

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