From 91b0dd1b2268f828d9be08c8055f3a24924ab018 Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 15 Nov 2018 10:04:41 +0800 Subject: [PATCH] - disable send msg to me when storeID == 0 --- business/jxutils/weixinmsg/weixinmsg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxutils/weixinmsg/weixinmsg.go b/business/jxutils/weixinmsg/weixinmsg.go index c46e6dd35..ecfb4b4cc 100644 --- a/business/jxutils/weixinmsg/weixinmsg.go +++ b/business/jxutils/weixinmsg/weixinmsg.go @@ -88,7 +88,7 @@ func SendMsgToStore(storeID int, templateID, downloadURL string, data interface{ globals.SugarLogger.Debugf("SendMsgToStore storeID:%d, templateID:%s, downloadURL:%s", storeID, templateID, downloadURL) if globals.ReallySendWeixinMsg { if storeID == 0 { // 测试,只发给我 - api.WeixinAPI.MessageTemplateSend("oYN_ust9hXKEvEv0X6Mq6nlAWs_E", templateID, downloadURL, nil, data) + // api.WeixinAPI.MessageTemplateSend("oYN_ust9hXKEvEv0X6Mq6nlAWs_E", templateID, downloadURL, nil, data) } else { openIDs := GetWeixinOpenIDsFromStoreID(storeID) successCount := 0