|
|
@ -1846,18 +1846,19 @@ public class HighOrderServiceImpl implements HighOrderService { |
|
|
|
|
|
|
|
|
|
|
|
highOrder.setProductType(object.getInteger("productType")); |
|
|
|
highOrder.setProductType(object.getInteger("productType")); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JSONObject userToken = QianZhuConfig.getTokenV2(user.getId().toString(), user.getName(), user.getPhone()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!userToken.getBoolean("success")) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, jsonObject.getString("message")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 1 星巴克 2 肯德基 3 会员充值
|
|
|
|
// 1 星巴克 2 肯德基 3 会员充值
|
|
|
|
if (object.getInteger("productType") == 1) { |
|
|
|
if (object.getInteger("productType") == 1) { |
|
|
|
|
|
|
|
|
|
|
|
JSONObject userToken = QianZhuConfig.getTokenV2(user.getId().toString(), user.getName(), user.getPhone()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!userToken.getBoolean("success")) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, jsonObject.getString("message")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<String> List = new ArrayList<>(); |
|
|
|
List<String> List = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JSONArray array = object.getJSONArray("orderItems"); |
|
|
|
JSONArray array = object.getJSONArray("orderItems"); |
|
|
|
|
|
|
|
|
|
|
|
for (Object o : array) { |
|
|
|
for (Object o : array) { |
|
|
|