935090232@qq.com
2021-01-10 0b32374c7908814627648d2e8f0499be2535b2c7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.matrix.system.wechart.templateMsg.demo;
 
import com.alibaba.fastjson.JSONObject;
import com.matrix.component.tools.HttpClientUtil;
import com.matrix.core.pojo.AjaxResult;
import com.matrix.system.hive.plugin.util.HttpUtils;
import com.matrix.system.shopXcx.api.WeChatGzhApiTools;
import com.matrix.system.wechart.templateMsg.Task.UniformMsgSentTask;
import com.rabbitmq.client.Delivery;
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;
 
import java.io.IOException;
 
@Controller
@RequestMapping(value = "test3")
public class MsgDemo3 {
 
 
    @Autowired
    UniformMsgSentTask uniformMsgSentTask;
 
    @RequestMapping("/template")
    @ResponseBody
    public AjaxResult template() throws IOException {
 
        uniformMsgSentTask.handle(null,null);
        return AjaxResult.buildSuccessInstance("1");
 
    }
 
 
}