|
@@ -144,7 +144,7 @@ func (this *vipSubscribeStruct) RenewSubVip(userId, endtime string) bool {
|
|
|
log.Println("%s格式化日期出错%s\n", userId, endtime)
|
|
|
return false
|
|
|
}
|
|
|
- return util.MQFW.UpdateById("user", userId, bson.M{"$set": bson.M{"l_vip_endtime": prepayTime.Unix()}})
|
|
|
+ return util.MQFW.UpdateById("user", userId, bson.M{"$set": bson.M{"l_vip_endtime": prepayTime.Unix(), "i_vip_expire_tip": 0}})
|
|
|
}
|
|
|
|
|
|
//升级
|
|
@@ -168,11 +168,13 @@ func (this *vipSubscribeStruct) UpgradeSubVip(userId string, vmsg VipSimpleMsg,
|
|
|
"o_vipjy.o_buyset": buyset,
|
|
|
"l_vip_endtime": endTime.Unix(),
|
|
|
"i_vip_status": 2,
|
|
|
+ "i_vip_expire_tip": 0,
|
|
|
}})
|
|
|
} else {
|
|
|
if !util.MQFW.UpdateById("user", userId,
|
|
|
bson.M{"$set": bson.M{
|
|
|
- "l_vip_endtime": endTime.Unix(),
|
|
|
+ "l_vip_endtime": endTime.Unix(),
|
|
|
+ "i_vip_expire_tip": 0,
|
|
|
}}) {
|
|
|
log.Printf("%s更新结束%d日期出错\n", userId, endTime.Unix())
|
|
|
return false
|