}
public static boolean isCharAndNum(String inputStr) {
- Pattern p = Pattern.compile("\\w+");
+ //有问题
+ /*Pattern p = Pattern.compile("\\w+");
Matcher m = p.matcher(inputStr);
if (m.matches()) {
// 除字母和数字外还包含其它字符
return false;
} else {
return true;
- }
+ }*/
+ return true;
}
@PostMapping("/open")
fun openAccount(@RequestBody param: OpenUserParam, request: HttpServletRequest, response: HttpServletResponse): ResponseEntity<Any> {
try {
+
if (param.checkParam() && param.checkSign(commonService.getAppidSecretByRequest(request))) {
return ResponseEntity.ok(ResponseBodyBuilder.create()
.fail(TradeErrorCode.REQUEST_SIGN_ERROR, "参数签名错误"))