Commit caf47adc by 111-PC\111

[+]pulsar消费服务

1 parent 7031a077
package cn.com.glsx.consumer;
import cn.com.glsx.consumer.service.TuyaConmsumerService;
import com.alibaba.nacos.common.utils.MD5Utils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* @author zhouhaibao
......@@ -16,13 +14,8 @@ import org.springframework.web.bind.annotation.ResponseBody;
@Slf4j
public class TestController {
@Autowired
private TuyaConmsumerService tuyaConmsumerService;
@RequestMapping("/test")
@ResponseBody
public void test() {
String data="{\"dataId\":\"AAW9APQog9AQo9A81QGYDUAAB\",\"devId\":\"6ce23622e4f6f960c5jhle\",\"productKey\":\"xruwvmir2e41r9db\",\"status\":[{\"code\":\"basic_flip\",\"103\":\"false\",\"t\":1615444744140,\"value\":false}]}";
tuyaConmsumerService.processMessage(data);
public static void main(String[] args) {
System.out.println(MD5Utils.md5Hex("13476670746","utf-8"));
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!