瀏覽代碼

fix:定时修改

duxin 1 月之前
父節點
當前提交
74a5261448
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/jfw/modules/subscribepay/src/timetask/timetask.go

+ 2 - 2
src/jfw/modules/subscribepay/src/timetask/timetask.go

@@ -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{}