|
@@ -953,7 +953,7 @@ func clearEntCache(userId int) {
|
|
// 大会员更新用户服务表
|
|
// 大会员更新用户服务表
|
|
func updateBigMemberService(userId string, now_unix int64) {
|
|
func updateBigMemberService(userId string, now_unix int64) {
|
|
now_time := FormatDateByInt64(&now_unix, Date_Full_Layout)
|
|
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 {
|
|
if len(*userServiceList) > 0 {
|
|
for _, v := range *userServiceList {
|
|
for _, v := range *userServiceList {
|
|
var serviceid = v["s_serviceid"]
|
|
var serviceid = v["s_serviceid"]
|