| 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"); | 
|   | 
|     } | 
|   | 
|   | 
| } |