zhouzeyu 1 vuosi sitten
vanhempi
commit
bc69343b85

+ 2 - 2
src/main/java/com/tuoren/forward/util/AliyunMessageUtil.java

@@ -15,9 +15,9 @@ import lombok.extern.slf4j.Slf4j;
 @Component
 public class AliyunMessageUtil {
 	
-	@Value("${aliyun2.accessKey}")
+	@Value("${aliyun1.accessKey}")
 	private String accessKey;
-	@Value("${aliyun2.accessSecret}")
+	@Value("${aliyun1.accessSecret}")
     private String accessSecret;
 	
 	private Client client = null;

+ 4 - 3
src/main/resources/application.yml

@@ -105,21 +105,22 @@ register:
 
 
 
+
 #阿里云配置
 aliyun1:
   enable: true
   accessKey: LTAI4G7FA9ytMc76oNkJ45YJ
   accessSecret: R7hOvMfiHb0PYroDqUDXAYgB9htQss
-  consumerGroupId: u3mShumaQA0Yyk3gfQM5000100
+  consumerGroupId: Zlpp6svZNbJN4slY0rwJ000100
   iotInstanceId: iot-060a0bgd
   clientId: fe80aba1dfd66b3576ce
   amqpHost: iot-060a0bgd.amqp.iothub.aliyuncs.com
 
 aliyun2:
-  enable: true
+  enable: false
   accessKey: LTAI4G7FA9ytMc76oNkJ45YJ
   accessSecret: R7hOvMfiHb0PYroDqUDXAYgB9htQss
-  consumerGroupId: RJeEjZ6TroTZ5TDrdRYP000100
+  consumerGroupId: cwWR1nPn5NToiRe7FHq1000100
   iotInstanceId: iot-060a0bgd
   clientId: fe80aba1dfd66b3576ce
   amqpHost: iot-060a0bgd.amqp.iothub.aliyuncs.com

+ 1 - 1
src/main/resources/mapper/UserConfigMapper.xml

@@ -26,7 +26,7 @@
     <insert id="insert" parameterType="com.tuoren.forward.entity.UserConfig">
         insert into user_config (id, wifi, address, device_secret, createtime, modifytime)
         values (#{id,jdbcType=VARCHAR}, #{wifi,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR},
-                #{localAddress,jdbcType=VARCHAR},
+                #{deviceSecret,jdbcType=VARCHAR},
                 #{createtime,jdbcType=TIMESTAMP},
                 #{modifytime,jdbcType=TIMESTAMP})
     </insert>