ソースを参照

Merge branch 'dev2.10.8' of http://192.168.3.207:10080/qmx/jy into dev2.10.8

zhangxinlei1996 5 年 前
コミット
104e6313b7

+ 4 - 1
src/jfw/active/live.go

@@ -82,7 +82,10 @@ func (this *Active) SubStatus() error {
 		"liveactiveRTB":      redis.GetInt("other", "liveactiveRTB"), //获取已购买人数
 	}
 	if userId != "" {
-		res["userId"] = util.SE.EncodeString(userId)
+		openId, _ := this.Session().Get("s_m_openid").(string)
+		if CheckUserIsSubscribe(openId) {
+			res["userId"] = util.SE.EncodeString(userId)
+		}
 		var query = map[string]interface{}{
 			"s_userid":   userId,
 			"order_type": "wx", //微信预约

+ 1 - 1
src/jfw/modules/app/src/web/staticres/jyapp/js/searchindex_zb.js

@@ -3545,7 +3545,7 @@ var Active_Vip_Invite = function(nowTime){
 				console.log(timeArr[0],thisDay)
 				if(timeArr[0]==thisDay){
 					var todatShowTimes = parseInt(timeArr[1])
-					if (todatShowTimes+1<3){//每日限制展示次数 2
+					if (todatShowTimes+1<2){//每日限制展示次数 2
 						console.log(thisDay+"_"+(todatShowTimes+1))
 						localStorage.setItem("ShowActive_Times",thisDay+"_"+(todatShowTimes+1))
 					}else{	//今日不再弹出

+ 1 - 1
src/jfw/modules/app/src/web/templates/active/livePage/preheat.html

@@ -193,7 +193,7 @@
                 // 显示倒计时
                 showDom:function(){
                     // 预约开启时间
-                    var t = showtime('2020/07/07/20:00')
+                    var t = showtime(1594123200000)
                     if (t.day == 0) {
                         $('.day').fadeOut()
                     }

+ 0 - 3
src/jfw/modules/app/src/web/templates/weixin/search/mainSearch.html

@@ -25,9 +25,6 @@
 	var CDN = {{Msg "seo" "cdn"}};
 	var VERSION = {{Msg "seo" "version"}};
   var isExaminePhone={{session "s_phone"}}=="18613717801";
-  if(mySysIsIos()&&(userId==null||userId==""||isExaminePhone)){
-    localStorage.setItem("Active_Vip_Invite",new Date().getTime());
-  }
 </script>
 </head>
 <body id="home_main" class="p13">

+ 0 - 3
src/jfw/modules/app/src/web/templates/weixin/search/mainSearch_zb.html

@@ -25,9 +25,6 @@
 	var CDN = {{Msg "seo" "cdn"}};
 	var VERSION = {{Msg "seo" "version"}};
   var isExaminePhone={{session "s_phone"}}=="18613717801";
-  if(mySysIsIos()&&(userId==null||userId==""||isExaminePhone)){
-    localStorage.setItem("Active_Vip_Invite",new Date().getTime());
-  }
 </script>
 </head>
 <body id="home_main" class="p13">

+ 1 - 1
src/web/templates/weixin/about.html

@@ -107,7 +107,7 @@
 				$(".download").show().css({"margin-top":"50px"})
 			}
 			$(".bg").css({"visibility":""});
-			$(".qrcode").attr("src","https://www.jianyu360.com/wx/limitcode/"+open_code).css({"visibility":""})
+			$(".qrcode").attr("src","/wx/limitcode/"+open_code).css({"visibility":""})
 		  	var reg = new RegExp("(^|&)client=([^&]*)(&|$)");
 	   		var r = window.location.search.substr(1).match(reg);
 			if (r!=null){