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