Browse Source

更新!

TRX 1 năm trước cách đây
mục cha
commit
25969e7f4e

+ 2 - 0
OneCardIotServer/src/main/java/com/zhongshu/iot/server/core/httpRequest/ApiRequestService.java

@@ -91,6 +91,8 @@ public class ApiRequestService extends SuperService {
         try {
             HashMap<String, Object> headers = new HashMap<>();
             // 签名
+            ak = "yboyqqhsnkxaekfaggcmxlyhfvffsp";
+            sk = "e915967a633745bd95b54a359d32f55b";
             if (StringUtils.isNotEmpty(ak) && StringUtils.isNotEmpty(sk)) {
                 String authorization = SignUtil.sign(JSONUtil.toJsonStr(data), ak, sk);
                 headers.put("Authorization", authorization);

+ 2 - 0
OneCardIotServer/src/main/java/com/zhongshu/iot/server/core/service/iotPlatform/impl/OnLineTopic.java

@@ -2,6 +2,7 @@ package com.zhongshu.iot.server.core.service.iotPlatform.impl;
 
 import com.github.microservice.net.ResultContent;
 import com.zhongshu.iot.server.core.domain.ExecuteAnnotationService;
+import com.zhongshu.iot.server.core.domain.ExecuteAnnotationServiceMethod;
 import com.zhongshu.iot.server.core.service.base.SuperService;
 import com.zhongshu.iot.server.core.service.iotPlatform.PlatformTopic;
 import lombok.extern.slf4j.Slf4j;
@@ -21,6 +22,7 @@ public class OnLineTopic implements PlatformTopic {
         return "/platform/%s/online";
     }
 
+    @ExecuteAnnotationServiceMethod(value = "online", remark = "上线")
     @Override
     public ResultContent<Object> action(String topic, String message) {
 

+ 2 - 0
OneCardIotServer/src/main/java/com/zhongshu/iot/server/core/service/iotPlatform/impl/UnLineTopic.java

@@ -2,6 +2,7 @@ package com.zhongshu.iot.server.core.service.iotPlatform.impl;
 
 import com.github.microservice.net.ResultContent;
 import com.zhongshu.iot.server.core.domain.ExecuteAnnotationService;
+import com.zhongshu.iot.server.core.domain.ExecuteAnnotationServiceMethod;
 import com.zhongshu.iot.server.core.service.iotPlatform.PlatformTopic;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
@@ -20,6 +21,7 @@ public class UnLineTopic implements PlatformTopic {
         return "/platform/%s/offline";
     }
 
+    @ExecuteAnnotationServiceMethod(value = "offline", remark = "下线")
     @Override
     public ResultContent<Object> action(String topic, String message) {
         return ResultContent.buildSuccess();