|
|
|
package com.zhonglai.luhui.admin.controller.monitor;
|
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
|
import cn.hutool.http.HttpUtil;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.google.gson.JsonArray;
|
|
|
|
import com.google.gson.JsonObject;
|
|
...
|
...
|
@@ -158,6 +159,20 @@ public class ServerController extends BaseController |
|
|
|
}
|
|
|
|
return AjaxResult.success();
|
|
|
|
}
|
|
|
|
|
|
|
|
@ApiOperation("抖音文案消息转发")
|
|
|
|
@PostMapping("/douyinWenan")
|
|
|
|
public AjaxResult douyinWenan(@RequestBody String content )
|
|
|
|
{
|
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
|
jsonObject.put("msgtype","text");
|
|
|
|
JSONObject text = new JSONObject();
|
|
|
|
text.put("content",content);
|
|
|
|
text.put("mentioned_mobile_list",new String[]{"@all"});
|
|
|
|
jsonObject.put("text",text);
|
|
|
|
HttpUtil.post("https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=6d6b4790-d20f-4692-bc4a-e8ceb1e8cfda",jsonObject.toJSONString());
|
|
|
|
return AjaxResult.success();
|
|
|
|
}
|
|
|
|
@ApiOperation("获取服务器应用列表")
|
|
|
|
@GetMapping("/getServiceAoolicationList")
|
|
|
|
public Map<String,Object> getServiceAoolicationList()
|
...
|
...
|
|