mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 18:26:38 +08:00
!190 fitler data except H5 data
Merge pull request !190 from Admin/sit-Carl-V3
This commit is contained in:
commit
248f2d426d
@ -89,10 +89,11 @@ public class OrderController {
|
|||||||
JSONObject jsonObject = JSONObject.parseObject(couponInfo);
|
JSONObject jsonObject = JSONObject.parseObject(couponInfo);
|
||||||
com.alibaba.fastjson.JSONArray jsonArray = JSONObject.parseArray(jsonObject.getString("data"));
|
com.alibaba.fastjson.JSONArray jsonArray = JSONObject.parseArray(jsonObject.getString("data"));
|
||||||
JSONObject jsonObjectData = (JSONObject) jsonArray.get(0);
|
JSONObject jsonObjectData = (JSONObject) jsonArray.get(0);
|
||||||
|
if (jsonObjectData.getString("udf2") != null){
|
||||||
if (jsonObjectData.getString("udf2") != "H5"){
|
if (!jsonObjectData.getString("udf2").equals("H5")){
|
||||||
return ResponseDTO.wrap(OrderResponseCodeConst.COUPON_USE_FAIL);
|
return ResponseDTO.wrap(OrderResponseCodeConst.COUPON_USE_FAIL);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
ordersEntity.setCouponAmount(jsonObjectData.getString("couponAmount") == null ? jsonObjectData.getString("discount") : jsonObjectData.getString("couponAmount"));
|
ordersEntity.setCouponAmount(jsonObjectData.getString("couponAmount") == null ? jsonObjectData.getString("discount") : jsonObjectData.getString("couponAmount"));
|
||||||
ordersEntity.setCouponCode(jsonObjectData.getString("couponCode"));
|
ordersEntity.setCouponCode(jsonObjectData.getString("couponCode"));
|
||||||
ordersEntity.setCouponName(jsonObjectData.getString("couponName"));
|
ordersEntity.setCouponName(jsonObjectData.getString("couponName"));
|
||||||
|
Loading…
Reference in New Issue
Block a user