zhangxinlei1996 5 years ago
parent
commit
e8ebbd0f04

File diff suppressed because it is too large
+ 0 - 0
src/jfw/modules/pushsubscribe/src/push/config.json


+ 3 - 0
src/jfw/modules/pushsubscribe/src/push/job/nothingjob.go

@@ -35,6 +35,9 @@ func (n *NothingJob) PushNothing(ratetype int) {
 	all := mongodb.Find("user", query, nil, `{"_id":1,"s_nickname":1,"o_vipjy":1,"a_jpushid":1,"s_jpushid":1,"s_opushid":1,"s_m_openid":1,"s_appponetype":1,"i_applystatus":1}`, false, 0, 0)
 	t, _ := time.ParseInLocation("2006-01-02", time.Now().Format("2006-01-02"), time.Local)
 	for _, v := range *all {
+		if v["o_vipjy"] == nil {
+			continue
+		}
 		ratemode := util.IntAll(v["o_vipjy"].(map[string]interface{})["i_ratemode"])
 		userid := util.BsonIdToSId(v["_id"])
 		day1, day2 := n.ComputTime(ratemode, t)

Some files were not shown because too many files changed in this diff