update 订单列表添加车牌号字段

This commit is contained in:
Lemon
2023-08-24 16:06:10 +08:00
parent 593810b625
commit 3ced5a36b8
6 changed files with 40 additions and 33 deletions

View File

@@ -102,11 +102,6 @@ public class LTYTServiceImpl implements LTYTService {
if (StringUtils.isBlank(token)) {
throw new BusinessException("", "路通云停系统 给指定车辆绑定优惠券 方法获取令牌失败");
}
// LTYTCommonParams params = new LTYTCommonParams();
// params.setAppId(dto.getAppId());
// params.setAccTime(DateUtils.dateTimeNow(DateUtils.YYYYMMDDHHMMSS));
// params.setToken(token);
// params.setVersion("1.0");
String url = BASE_URL + "bindCoupon";
JSONObject jsonObject = new JSONObject();
@@ -127,8 +122,9 @@ public class LTYTServiceImpl implements LTYTService {
// 发送请求
String result = HttpUtil.post(url, JSON.toJSONString(jsonObject));
log.info("给指定车辆绑定优惠券 params:{}, result:{}", JSON.toJSONString(jsonObject), result);
JSONObject resultJson = JSONObject.parseObject(result);
return null;
return resultJson.getString("msg");
}
public static void main(String[] args) throws UnsupportedEncodingException {