Commit 81a5ffb3 authored by shiyu's avatar shiyu

注释公众号发送模板消息代码

parent a0787e03
...@@ -1208,13 +1208,13 @@ public class ItemServiceImpl implements ItemService { ...@@ -1208,13 +1208,13 @@ public class ItemServiceImpl implements ItemService {
} }
} }
//通过公众号发送模板消息 //通过公众号发送模板消息
User user = cacheUtil.getAppletUsers(userItemsRelation.getUserId()); /* User user = cacheUtil.getAppletUsers(userItemsRelation.getUserId());
OfficialAccountSubscribeRecord officialAccountSubscribeRecord = officialAccountSubscribeRecordDao.findOne(user.getWeixinOpenid()); OfficialAccountSubscribeRecord officialAccountSubscribeRecord = officialAccountSubscribeRecordDao.findOne(user.getWeixinOpenid());
if (officialAccountSubscribeRecord != null) { if (officialAccountSubscribeRecord != null) {
String officalAccountOpenid = officialAccountSubscribeRecord.getOpenid(); String officalAccountOpenid = officialAccountSubscribeRecord.getOpenid();
OfficialAccountCollectSubscribeMsg officialAccountCollectSubscribeMsg = new OfficialAccountCollectSubscribeMsg(); OfficialAccountCollectSubscribeMsg officialAccountCollectSubscribeMsg = new OfficialAccountCollectSubscribeMsg();
officialAccountApi.sendModelMsg(officalAccountOpenid, officialAccountCollectSubscribeMsg); officialAccountApi.sendModelMsg(officalAccountOpenid, officialAccountCollectSubscribeMsg);
} }*/
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment