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