Parcourir la source

不活跃变活跃处理

WH01243 il y a 1 an
Parent
commit
4087715b99
1 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 4 3
      resourceBrushLibrary/entity/order.go

+ 4 - 3
resourceBrushLibrary/entity/order.go

@@ -31,7 +31,8 @@ func OrderResourceRun(now time.Time, end int64) {
 	sess := Mgo_qfw.GetMgoConn()
 	defer Mgo_qfw.DestoryMongoConn(sess)
 	it := sess.DB("qfw").C("user").Find(map[string]interface{}{
-		"i_appid": 2,
+		"s_phone": "13100550038",
+		/*"i_appid": 2,
 		"i_vip_status": map[string]interface{}{
 			"$gt": 0,
 		},
@@ -46,7 +47,7 @@ func OrderResourceRun(now time.Time, end int64) {
 					"$exists": 0,
 				},
 			},
-		},
+		},*/
 	}).Select(map[string]interface{}{
 		"_id":              1,
 		"l_vip_endtime":    1,
@@ -77,7 +78,7 @@ func OrderResourceRun(now time.Time, end int64) {
 				VipTime:      FormatDateByInt64(&l_vip_endtime, Date_Short_Layout),
 				Model:        3,
 			})
-			subpush_inactive := gconv.Int64(m["subpush_inactive"])
+			subpush_inactive := gconv.Int64(user["subpush_inactive"])
 			if subpush_inactive == 1 {
 				subpush_inactive = -1
 			}