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

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

@@ -146,7 +146,7 @@ public class InnerController extends BaseController {
 
     @GetMapping(value = "/pdsfsdfsrvateddsfeky/{appId}")
     public Result getPrivateKey(@PathVariable String appId){
-        AppSecret appSecret = appSecretService.getByAppId("uenter");
+        AppSecret appSecret = appSecretService.getByAppId("ucenter");
         if(appSecret == null){
             throw new com.fdkankan.ucenter.exception.BusinessException(ResultCode.SIGN_ERROR);
         }

+ 1 - 1
src/main/java/com/fdkankan/ucenter/service/impl/InnerServiceImpl.java

@@ -259,7 +259,7 @@ public class InnerServiceImpl implements IInnerService {
         JSONObject jsonObject = new JSONObject();
         jsonObject.put("appId","ucenter");
         jsonObject.put("timestamp",new Date().getTime());
-        System.out.println(jsonObject);
+        System.out.println(RsaUtils.encipher(jsonObject.toJSONString(),"MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAIhRmrAqPCFYYkqdYbk5WahD2H4cdNcTWdExA2X73gB+u3YPkoguau7Qa2en3lSJK2KXdYz1uztKrGgaNDY1AnsCAwEAAQ=="));
     }
 
 

+ 1 - 1
src/main/resources/bootstrap.yml

@@ -1,6 +1,6 @@
 spring:
   profiles:
-    active: dev-eur
+    active: dev
 server:
   port: 8082
   servlet: