fix:编码生成不更新

This commit is contained in:
zhangzq
2025-02-18 15:53:11 +08:00
parent 62f5f723f8
commit b1fbce7f08
2 changed files with 4 additions and 1 deletions

View File

@@ -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);
}

View File

@@ -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);
}