fix:编码生成不更新
This commit is contained in:
@@ -28,7 +28,7 @@ public class CodeUtil {
|
||||
String flag = "1";
|
||||
HashMap<String, String> map = new HashMap<>();
|
||||
map.put("flag", flag);
|
||||
String code = HttpUtil.get("http://127.0.0.1:8013/api/codeDetail/getNewCode?code=" + ruleCode + "&flag" + flag);
|
||||
String code = HttpUtil.get("http://127.0.0.1:8013/api/codeDetail/getNewCode?code=" + ruleCode + "&flag=" + flag);
|
||||
if (code.contains("status")){
|
||||
throw new BadRequestException(code);
|
||||
}
|
||||
|
||||
@@ -67,6 +67,9 @@ public class SysCodeRuleDetailController {
|
||||
@GetMapping("getNewCode")
|
||||
@SaIgnore
|
||||
public ResponseEntity<Object> getCode(String code,String flag) {
|
||||
if (StringUtils.isEmpty(flag)){
|
||||
flag = "1";
|
||||
}
|
||||
String newCode = codeDetailService.getNewCode(code, flag);
|
||||
return new ResponseEntity<>(newCode,HttpStatus.OK);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user