zhangxinlei1996 5 жил өмнө
parent
commit
cd0fa3b770

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

@@ -2434,7 +2434,7 @@ func (f *Front) HasPushHistory() {
 			t, _ := time.ParseInLocation("2006-01-02", time.Now().Format("2006-01-02"), time.Local)
 			today_1 := t.Unix()
 			today_2 := t.AddDate(0, 0, 1).Unix()
-			if public.Mysql.CountBySql("select count(1) as count from pushsubscribe where userid =? and buyerclass=?  and (date between ? and ? )", f.GetSession("userId"), 93, today_1, today_2) > 0 {
+			if public.Mysql.CountBySql("select count(1) as count from pushsubscribe where isvip =1 and userid =? and buyerclass=?  and (date between ? and ? )", f.GetSession("userId"), 93, today_1, today_2) > 0 {
 				otherFlag = true
 			}
 		} else {
@@ -2447,7 +2447,7 @@ func (f *Front) HasPushHistory() {
 				a_key, _ := o_jy["a_key"].([]interface{})
 				hasKeyFlag = len(a_key) > 0
 			}
-			isPassCount = redis.GetInt("pushcache_2_a", "oncecount_"+tedayNum+"_"+userId) >= 50
+			isPassCount = redis.GetInt("pushcache_2_a", "oncecount_"+tedayNum+"_"+userId) >= 150
 		}
 	}
 	pageNum, _ := f.GetInteger("pageNum")

+ 1 - 1
src/jfw/modules/app/src/app/front/me.go

@@ -363,7 +363,7 @@ func (l *Me) MyInfo() {
 					hasKeyFlag = len(a_itmes) > 0
 				}
 			} else {
-				isPassCount = redis.GetInt("pushcache_2_a", "oncecount_"+tedayNum+"_"+userId) > 50
+				isPassCount = redis.GetInt("pushcache_2_a", "oncecount_"+tedayNum+"_"+userId) > 150
 				o_jy, _ := (*user)["o_jy"].(map[string]interface{})
 				if o_jy != nil || len(o_jy) == 0 {
 					a_key, _ := o_jy["a_key"].([]interface{})

+ 2 - 1
src/jfw/modules/app/src/app/front/swordfish.go

@@ -685,7 +685,8 @@ func (f *Front) HasPushHistory() {
 		t, _ := time.ParseInLocation("2006-01-02", time.Now().Format("2006-01-02"), time.Local)
 		today_1 := t.Unix()
 		today_2 := t.AddDate(0, 0, 1).Unix()
-		if public.Mysql.CountBySql("select count(1) as count from pushsubscribe where userid =? and buyerclass=?  and (date between ? and ? )", f.GetSession("userId"), 93, today_1, today_2) > 0 {
+		if public.Mysql.CountBySql("select count(1) as count from pushsubscribe where isvip=1 and userid =? and buyerclass=?  and (date between ? and ? )", f.GetSession("userId"), 93, today_1, today_2) > 0 {
+			log.Println("~~~")
 			otherFlag = true
 		}
 	}