Explorar o código

fix:自动开权益修改

duxin hai 2 meses
pai
achega
b4c44f6b04
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/jfw/modules/subscribepay/src/timetask/timetask.go

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

@@ -953,7 +953,7 @@ func clearEntCache(userId int) {
 // 大会员更新用户服务表
 func updateBigMemberService(userId string, now_unix int64) {
 	now_time := FormatDateByInt64(&now_unix, Date_Full_Layout)
-	userServiceList := util.Mysql.SelectBySql(`select * from  `+jy.BigmemberUserPowerTable+` where s_userid=? AND i_status = 1 AND l_starttime < ? AND l_endtime > ?`, userId, now_time, now_time)
+	userServiceList := util.Mysql.SelectBySql(`select * from  `+jy.BigmemberUserPowerTable+` where s_userid=? AND i_status = 1 AND l_starttime <= ? AND l_endtime > ?`, userId, now_time, now_time)
 	if len(*userServiceList) > 0 {
 		for _, v := range *userServiceList {
 			var serviceid = v["s_serviceid"]