Merge remote-tracking branch 'origin/master'

This commit is contained in:
LiJianZhao 2025-04-25 17:03:05 +08:00
commit 0a3ce9df58
1 changed files with 11 additions and 3 deletions

View File

@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/auth")
@RequestMapping("/common/auth")
public class AuthController extends BaseController {
@Autowired
private Config config;
@ -25,8 +25,16 @@ public class AuthController extends BaseController {
}
@RequestMapping("get")
@NoAuthCheck
public Result<JSONObject> get() {
public Result<String> get() {
String cert=config.get("common","cert");
return success(JSONObject.parseObject(cert));
return success(cert);
}
@RequestMapping("check")
@NoAuthCheck
public Result<JSONObject> check(){
String cert=config.get("common","cert");
String data= RsaUtil.decryp(cert);
return success(JSONObject.parseObject(data));
}
}