Commit c61294b2 authored by 赵啸非's avatar 赵啸非

添加离线 上线日志

parent 05ba8777
......@@ -5,6 +5,7 @@ import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.mortals.framework.service.ICacheService;
import com.mortals.framework.service.ILogService;
import com.mortals.framework.service.impl.FileLogServiceImpl;
import com.mortals.xhx.busiz.req.TestReq;
......@@ -43,6 +44,8 @@ public class TestSendMsgController {
private ProductService productService;
@Autowired
private DeviceService deviceService;
@Autowired
private ICacheService cacheService;
/**
* 发送日志消息
......@@ -126,6 +129,15 @@ public class TestSendMsgController {
}
@RequestMapping(value = "{key}/{value}", method = RequestMethod.GET)
public String setData(@PathVariable("key") String key,
@PathVariable("value") String value) {
cacheService.set(key, value);
String s =cacheService.get(key);
return s;
}
public static void main(String[] args) {
String resp = HttpUtil.get("http://59.225.206.13:8331/oauth-pro/admin-pro/sys/randomImage/1675827431800?_t=1675827431");
......@@ -152,8 +164,6 @@ public class TestSendMsgController {
*/
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment