lyhzzz 1 tháng trước cách đây
mục cha
commit
2bc2972408

+ 1 - 9
src/main/java/com/fdkankan/ucenter/controller/inner/InnerController.java

@@ -135,17 +135,9 @@ public class InnerController extends BaseController {
         return Result.success(innerService.getSceneBySnCode(param));
     }
 
-    @Value("${ucenter.sign.appid}")
-    public String sssappId;
     @GetMapping(value = "/pdsfsdfsrvateddsfeky/{appId}")
+    @VerifySign
     public Result getPrivateKey(@PathVariable String appId){
-        AppSecret appSecret = appSecretService.getByAppId(sssappId);
-        if(appSecret == null){
-            throw new com.fdkankan.ucenter.exception.BusinessException(ResultCode.SIGN_ERROR);
-        }
-        if(!SignUtils.checkSign(getSign(),appId,appSecret.getPrivateKey())){
-            throw new com.fdkankan.ucenter.exception.BusinessException(ResultCode.SIGN_ERROR);
-        }
         return Result.success(appSecretService.getByAppId(appId));
     }
 }