|
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.jihengbel.intelligent.applicationtask.common.HttpCilentUntil;
|
|
|
import com.jihengbel.intelligent.applicationtask.entry.SendMsgReq;
|
|
|
import com.jihengbel.intelligent.applicationtask.entry.TemplateEntry;
|
|
|
+import com.jihengbel.intelligent.applicationtask.entry.ValEntry;
|
|
|
import com.jihengbel.intelligent.applicationtask.model.UserMapper;
|
|
|
import com.jihengbel.intelligent.applicationtask.service.MsgService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -47,11 +48,11 @@ public class MsgServiceImpl implements MsgService {
|
|
|
params.put("appid", appid);
|
|
|
params.put("grant_type", "client_credential");
|
|
|
|
|
|
- HashMap<String, String> dataMap = new HashMap();
|
|
|
- dataMap.put("thing1", sendMsgReq.getContent());
|
|
|
- dataMap.put("thing2", sendMsgReq.getTitle());
|
|
|
- dataMap.put("time3", sendMsgReq.getEndTime());
|
|
|
- dataMap.put("thing4", "智云工厂系统");
|
|
|
+ HashMap<String, ValEntry> dataMap = new HashMap();
|
|
|
+ dataMap.put("thing1", new ValEntry(sendMsgReq.getContent()));
|
|
|
+ dataMap.put("thing2", new ValEntry(sendMsgReq.getTitle()));
|
|
|
+ dataMap.put("time3", new ValEntry(sendMsgReq.getEndTime()));
|
|
|
+ dataMap.put("thing4", new ValEntry("智云工厂系统"));
|
|
|
|
|
|
String openId = userMapper.getOpenIdByUserId(sendMsgReq.getToUserId());
|
|
|
TemplateEntry template = new TemplateEntry();
|