Browse Source

内部接口鉴权

dengsixing 1 tháng trước cách đây
mục cha
commit
fd11e1fbaf

+ 2 - 1
src/main/java/com/fdkankan/contro/Interceptor/SignVerificationAspect.java

@@ -73,7 +73,8 @@ public class SignVerificationAspect {
 		if(result.getCode() != ServerCode.SUCCESS.code()){
 			throw new RuntimeException("系统异常");
 		}
-		String privateKey = (String) result.getData();
+		JSONObject data = (JSONObject) result.getData();
+		String privateKey = data.getString("privateKey");
 
 		//签名解密
 		if(!SignUtils.checkSign(sign, appId, privateKey)){