Explorar el Código

取关发送短信

WH01243 hace 5 meses
padre
commit
6dcdc5c5c8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/jfw/modules/weixin/src/wx/wx.go

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

@@ -985,11 +985,11 @@ func UnSubscribe(w ResponseWriter, r *Request) {
 // 取关发送短信
 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}`)
-	log.Println("取关", m, b)
+	log.Println("取关发短信", m, b)
 	if !b && m == nil {
 		return -1, "未查询到用户"
 	}
-	log.Println(m)
+	log.Println("手机号", (*m)["s_m_phone"], (*m)["s_phone"])
 	phone := gconv.String((*m)["s_phone"])
 	if phone == "" {
 		phone = gconv.String((*m)["s_m_phone"])