记得上下班打卡 | git大法好,push需谨慎

Commit e7ac9b31 authored by 胡佳晨's avatar 胡佳晨

修改快递价格

parent 8a93b3ff
...@@ -308,7 +308,7 @@ public class OrderUtils { ...@@ -308,7 +308,7 @@ public class OrderUtils {
header.add("Authorization", "Bearer " + CurrentUtil.getToken()); header.add("Authorization", "Bearer " + CurrentUtil.getToken());
String resultData = HttpUtil.get(kylinUrl + "/getShunFengPrice/getPrice?adcode=" + adCode + "&productCode=" + productCode, null, header); String resultData = HttpUtil.get(kylinUrl + "/getShunFengPrice/getPrice?adcode=" + adCode + "&productCode=" + productCode, null, header);
ResponseDto<String> innerReturnVo = JsonUtils.fromJson(resultData, ResponseDto.class); ResponseDto<String> innerReturnVo = JsonUtils.fromJson(resultData, ResponseDto.class);
return BigDecimal.valueOf(Integer.parseInt(innerReturnVo.getData().replace("元", ""))); return new BigDecimal(innerReturnVo.getData().replace("元", ""));
} catch (Exception e) { } catch (Exception e) {
log.error("获取快递费失败:{}", e); log.error("获取快递费失败:{}", e);
return BigDecimal.valueOf(23); return BigDecimal.valueOf(23);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment