lyhzzz 1 month ago
parent
commit
3570612604

+ 3 - 1
src/main/java/com/fdkankan/ucenter/httpClient/SignInterceptor.java

@@ -25,10 +25,12 @@ public class SignInterceptor implements Interceptor<JSONObject> {
 
     @Autowired
     IAppSecretService appSecretService;
+    @Value("${ucenter.sign.appId}")
+    public String appId;
 
     @Override
     public void onInvokeMethod(ForestRequest request, ForestMethod method, Object[] args) {
-        AppSecret byAppId = appSecretService.getByAppId("411622fc06ccc29fde7693d9d8c20363");
+        AppSecret byAppId = appSecretService.getByAppId(appId);
         JSONObject playload = new JSONObject();
         Instant now = Instant.now();
         long epochSecond = now.getEpochSecond();