Browse Source

用户来源注册信息登记

wangshan 9 tháng trước cách đây
mục cha
commit
03af090345
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/jfw/front/websocket.go

+ 2 - 2
src/jfw/front/websocket.go

@@ -152,9 +152,9 @@ func GetWsByCode(param []string) bool {
 			}
 			// 新用户注册 记录来源
 			sourceLabel := redis.GetStr("limitation", fmt.Sprintf("firstVisitTagByWX_%s", session.Id()))
-			//来源不为空,且 注册时间 在5分钟内
-			registeDate := qutil.Int64All(infoData["registedate"])
 			if sourceLabel != "" && openid != "" {
+				//来源不为空,且 注册时间 在5分钟内
+				registeDate := qutil.Int64All(infoData["registedate"])
 				if time.Now().Unix()-registeDate < 300 {
 					if ok := public.MQFW.Update("user", map[string]interface{}{
 						"s_m_openid": openid,