Forráskód Böngészése

获取web访问令牌修改

gao.qiang 1 éve
szülő
commit
12160183fc

+ 1 - 2
hazard-sdk/src/main/java/com/ozs/controller/upload/GeoHazardMonitorTokenController.java

@@ -88,8 +88,7 @@ public class GeoHazardMonitorTokenController {
         }
         SvcAddress serviceOne = svcAddressService.getOne(lw);
         if (!ObjectUtils.isEmpty(serviceOne)) {
-            String clientSecret = SM4Utils.decryptData_ECB(serviceOne.getClientSecret(), "4370780c9a8c43e5");
-            if (clientSecret.equals(svcAddress.getClientSecret())) {
+            if (serviceOne.getClientSecret().equals(svcAddress.getClientSecret())) {
                 ArrayList<String> objects = apiTokenUtils.createGeoHazardMonitorToken(svcAddress.getGrantType(), svcAddress.getClientId(), svcAddress.getClientSecret());
                 if (objects.size() > 0) {
                     RespGeoHazardMonitorVo respGeoHazardMonitorVo = new RespGeoHazardMonitorVo();