|
@@ -966,13 +966,13 @@ func updateBigMemberService(userId string, now_unix int64) {
|
|
|
|
|
|
// 大会员用户服务表 用户服务是否需要开启或关闭
|
|
|
func checkMemberServiceIsExpire() {
|
|
|
- crontab(false, TimeTaskConfig.MemberServiceIsExpire, func() {
|
|
|
+ crontab(true, TimeTaskConfig.MemberServiceIsExpire, func() {
|
|
|
defer qutil.Catch()
|
|
|
log.Println("定时任务,更新大会员服务表状态开始")
|
|
|
now_unix := time.Now().Unix()
|
|
|
now_time := FormatDateByInt64(&now_unix, Date_Full_Layout)
|
|
|
//待使用服务更新状态 wait & 服务到期更新状态 overdue
|
|
|
- wooList := util.Mysql.SelectBySql(`SELECT * FROM `+jy.BigmemberUserPowerTable+` a WHERE (a.i_status = 1 AND a.l_starttime < ? AND a.l_endtime > ?) OR (a.i_status = 0 AND a.l_endtime < ?)`, now_time, now_time, now_time)
|
|
|
+ wooList := util.Mysql.SelectBySql(`SELECT * FROM `+jy.BigmemberUserPowerTable+` a WHERE (a.i_status = 1 AND a.l_starttime <= ? AND a.l_endtime > ?) OR (a.i_status = 0 AND a.l_endtime < ?)`, now_time, now_time, now_time)
|
|
|
if len(*wooList) > 0 {
|
|
|
// log.Println(len(*wooList), "-----:", wooList)
|
|
|
var useridMap = map[string]bool{}
|