Browse Source

取关发送短信

WH01243 5 months ago
parent
commit
d7ce24af80
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/jfw/modules/weixin/src/wx/wx.go

+ 3 - 3
src/jfw/modules/weixin/src/wx/wx.go

@@ -986,7 +986,7 @@ func UnSubscribe(w ResponseWriter, r *Request) {
 // 取关发送短信
 // 取关发送短信
 func unfollowSendMail(openid string) (int64, string) {
 func unfollowSendMail(openid string) (int64, string) {
 	m, b := tools.MQFW.FindOneByField("user", `{"s_m_openid":"`+openid+`","s_unionid":{"$ne":"`+openid+`"}}`, `{"s_m_phone":1,"s_phone":1,"_id",1}`)
 	m, b := tools.MQFW.FindOneByField("user", `{"s_m_openid":"`+openid+`","s_unionid":{"$ne":"`+openid+`"}}`, `{"s_m_phone":1,"s_phone":1,"_id",1}`)
-	log.Println("取关发短信", m, b)
+	log.Println("取关发短信", openid)
 	if !b && m == nil {
 	if !b && m == nil {
 		return -1, "未查询到用户"
 		return -1, "未查询到用户"
 	}
 	}
@@ -1000,8 +1000,8 @@ func unfollowSendMail(openid string) (int64, string) {
 		return -1, "找不到手机号"
 		return -1, "找不到手机号"
 	}
 	}
 	if PhoneReg.MatchString(phone) {
 	if PhoneReg.MatchString(phone) {
-		log.Println(gconv.String(config.Sysconfig["smsServiceRpc"]), gconv.String(config.Sysconfig["unfollowMailId"]), phone, gconv.String(config.Sysconfig["unfollowContent"]))
-		sms.SendSms(gconv.String(config.Sysconfig["smsServiceRpc"]), gconv.String(config.Sysconfig["unfollowMailId"]), phone, gconv.String(config.Sysconfig["unfollowContent"]))
+		log.Println(gconv.String(config.Sysconfig["smsServiceRpc"]), gconv.String(config.Sysconfig["unfollowMailId"]), phone, "")
+		sms.SendSms(gconv.String(config.Sysconfig["smsServiceRpc"]), gconv.String(config.Sysconfig["unfollowMailId"]), phone, "")
 		return 1, ""
 		return 1, ""
 	}
 	}
 	return -1, "发送失败"
 	return -1, "发送失败"