|
|
@ -71,6 +71,9 @@ public class HighOrderController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isBlank(object.getString("apiKey")) || |
|
|
|
if (StringUtils.isBlank(object.getString("apiKey")) || |
|
|
|
|
|
|
|
StringUtils.isBlank(object.getString("merchId")) || |
|
|
|
|
|
|
|
StringUtils.isBlank(object.getString("createTimeS")) || |
|
|
|
|
|
|
|
StringUtils.isBlank(object.getString("createTimeE")) || |
|
|
|
StringUtils.isBlank(object.getString("merchId")) || |
|
|
|
StringUtils.isBlank(object.getString("merchId")) || |
|
|
|
StringUtils.isBlank(object.getString("timetable")) || |
|
|
|
StringUtils.isBlank(object.getString("timetable")) || |
|
|
|
StringUtils.isBlank(object.getString("sign")) |
|
|
|
StringUtils.isBlank(object.getString("sign")) |
|
|
@ -90,6 +93,8 @@ public class HighOrderController { |
|
|
|
map.put("apiKey" , object.getString("apiKey")); |
|
|
|
map.put("apiKey" , object.getString("apiKey")); |
|
|
|
map.put("timetable" , object.getString("timetable")); |
|
|
|
map.put("timetable" , object.getString("timetable")); |
|
|
|
map.put("merchId" , object.getString("merchId")); |
|
|
|
map.put("merchId" , object.getString("merchId")); |
|
|
|
|
|
|
|
map.put("createTimeS" , object.getString("createTimeS")); |
|
|
|
|
|
|
|
map.put("createTimeE" , object.getString("createTimeE")); |
|
|
|
|
|
|
|
|
|
|
|
if (!secConfigService.isSignVerify(map , object.getString("sign"))) { |
|
|
|
if (!secConfigService.isSignVerify(map , object.getString("sign"))) { |
|
|
|
log.error("getRechargeProduct error!", "签名校验失败!"); |
|
|
|
log.error("getRechargeProduct error!", "签名校验失败!"); |
|
|
@ -98,7 +103,7 @@ public class HighOrderController { |
|
|
|
|
|
|
|
|
|
|
|
if (!ToolConfig.timetableCheck(15L , object.getLong("timetable"))) { |
|
|
|
if (!ToolConfig.timetableCheck(15L , object.getLong("timetable"))) { |
|
|
|
log.error("getRechargeProduct error!", "请求时间超过15分钟!"); |
|
|
|
log.error("getRechargeProduct error!", "请求时间超过15分钟!"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.SIGN_VERIFY); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.TIME_OUT); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> postMap = new HashMap<>(); |
|
|
|
Map<String, Object> postMap = new HashMap<>(); |
|
|
@ -133,6 +138,8 @@ public class HighOrderController { |
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isBlank(object.getString("apiKey")) || |
|
|
|
if (StringUtils.isBlank(object.getString("apiKey")) || |
|
|
|
StringUtils.isBlank(object.getString("merchId")) || |
|
|
|
StringUtils.isBlank(object.getString("merchId")) || |
|
|
|
|
|
|
|
StringUtils.isBlank(object.getString("createTimeS")) || |
|
|
|
|
|
|
|
StringUtils.isBlank(object.getString("createTimeE")) || |
|
|
|
StringUtils.isBlank(object.getString("timetable")) || |
|
|
|
StringUtils.isBlank(object.getString("timetable")) || |
|
|
|
StringUtils.isBlank(object.getString("sign")) |
|
|
|
StringUtils.isBlank(object.getString("sign")) |
|
|
|
) { |
|
|
|
) { |
|
|
@ -151,6 +158,8 @@ public class HighOrderController { |
|
|
|
map.put("apiKey" , object.getString("apiKey")); |
|
|
|
map.put("apiKey" , object.getString("apiKey")); |
|
|
|
map.put("timetable" , object.getString("timetable")); |
|
|
|
map.put("timetable" , object.getString("timetable")); |
|
|
|
map.put("merchId" , object.getString("merchId")); |
|
|
|
map.put("merchId" , object.getString("merchId")); |
|
|
|
|
|
|
|
map.put("createTimeS" , object.getString("createTimeS")); |
|
|
|
|
|
|
|
map.put("createTimeE" , object.getString("createTimeE")); |
|
|
|
|
|
|
|
|
|
|
|
if (!secConfigService.isSignVerify(map , object.getString("sign"))) { |
|
|
|
if (!secConfigService.isSignVerify(map , object.getString("sign"))) { |
|
|
|
log.error("getRechargeProduct error!", "签名校验失败!"); |
|
|
|
log.error("getRechargeProduct error!", "签名校验失败!"); |
|
|
@ -159,7 +168,7 @@ public class HighOrderController { |
|
|
|
|
|
|
|
|
|
|
|
if (!ToolConfig.timetableCheck(15L , object.getLong("timetable"))) { |
|
|
|
if (!ToolConfig.timetableCheck(15L , object.getLong("timetable"))) { |
|
|
|
log.error("getRechargeProduct error!", "请求时间超过15分钟!"); |
|
|
|
log.error("getRechargeProduct error!", "请求时间超过15分钟!"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.SIGN_VERIFY); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.TIME_OUT); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> postMap = new HashMap<>(); |
|
|
|
Map<String, Object> postMap = new HashMap<>(); |
|
|
|