|
@@ -248,7 +248,7 @@ func transferByPhone(t *VipGift, user, phones map[string]interface{}, platform s
|
|
|
t1 := time.Unix(endTime, 0).Local()
|
|
|
newTime := t1.AddDate(0, -num, 0)
|
|
|
|
|
|
- if (sameDay && dif == 0) || (newTime.Unix() > time.Now().Unix()) {
|
|
|
+ if (sameDay && dif == 0) || (newTime.Unix() <= time.Now().Unix()) {
|
|
|
if !util.Compatible.Update(userId, bson.M{"$set": map[string]interface{}{
|
|
|
"i_vip_status": -i_vip_status,
|
|
|
"i_vip_expire_tip": 2,
|