|
|
@ -60,11 +60,11 @@ public class WechatRest { |
|
|
|
@PostMapping("/sendMessage") |
|
|
|
public void sendMessage(@RequestBody WeChatTemplateMsg data) throws Exception { |
|
|
|
|
|
|
|
String openId="otnrM57kui-WCUmRtChhb1HguOgw"; |
|
|
|
String openId="otnrM521f8KcCsRfL2Jj4Tk8np1g"; |
|
|
|
//String openId ="otnrM5ySvUo7ZZc4qafWzM9eyKBk";
|
|
|
|
//String openId="otnrM544hxIgkMOfaDU8VpJhj_6k";
|
|
|
|
String appsecret="4764e32722a7d98656dea6afd9405701"; |
|
|
|
String appId="wx1d44e0fcd110351a"; |
|
|
|
// String appsecret="4764e32722a7d98656dea6afd9405701";
|
|
|
|
// String appId="wx1d44e0fcd110351a";
|
|
|
|
// 模板参数
|
|
|
|
Map<String, String> sendMag = new HashMap<String, String>(); |
|
|
|
// openId代表一个唯一微信用户,即微信消息的接收人
|
|
|
|