Commit 8594675f by 徐高华

参数校验

parent cf15d099
......@@ -92,7 +92,7 @@ public class OfflinePreController {
@RequestMapping("/check-offline-pre-write-off")
@ResponseBody
public RestResponse<Void> checkOfflinePreWriteOff(String offlinePreId, String storeId){
if(StringUtils.isBlank(offlinePreId) || !NumberUtil.isNumber(offlinePreId.trim())) {
if(StringUtils.isBlank(offlinePreId) || !offlinePreId.trim().chars().allMatch(Character::isDigit)) {
return RestResponse.failure("9999","参数错误") ;
}
ServiceResponse<Void> countOfflinePre = offlinePreApiService.checkOfflinePreWriteOff(Long.valueOf(offlinePreId.trim()), storeId);
......
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