|
|
@@ -431,14 +431,15 @@ public class MirrorController {
|
|
|
String authorization = request.getHeader("Authorization");
|
|
|
String referer = request.getHeader("Referer");
|
|
|
String userAgent = request.getHeader("User-Agent");
|
|
|
- if (StringUtils.isBlank(authorization)) {
|
|
|
- return "";
|
|
|
- }
|
|
|
- if (authorization.length() > 7) {
|
|
|
- String userToken = authorization.substring(7);
|
|
|
- return chatGptAccountService.isRestrictions(userToken,referer,userAgent);
|
|
|
+ if (StringUtils.isNotBlank(authorization)) {
|
|
|
+ if (authorization.length() > 7) {
|
|
|
+ String userToken = authorization.substring(7);
|
|
|
+ return chatGptAccountService.isRestrictions(userToken,referer,userAgent);
|
|
|
+ }
|
|
|
}
|
|
|
- return "";
|
|
|
+ JSONObject result = new JSONObject();
|
|
|
+ result.putOpt("code",0);
|
|
|
+ return result.toString();
|
|
|
}
|
|
|
|
|
|
/**
|