|
@@ -957,7 +957,7 @@ class MemberService extends BaseService
|
|
|
// 有效会员
|
|
// 有效会员
|
|
|
$users = $this->model::where(['mark'=>1,'status'=>1])
|
|
$users = $this->model::where(['mark'=>1,'status'=>1])
|
|
|
->where('vip_expire','>=', time())
|
|
->where('vip_expire','>=', time())
|
|
|
- ->where('give_expire','<', strtotime('Y-m-01'))
|
|
|
|
|
|
|
+ ->where('give_time','<', strtotime(date('Y-m-01')))
|
|
|
->select(['id','nickname','coupon','give_time','vip_expire'])
|
|
->select(['id','nickname','coupon','give_time','vip_expire'])
|
|
|
->limit($num)
|
|
->limit($num)
|
|
|
->get();
|
|
->get();
|
|
@@ -1033,7 +1033,7 @@ class MemberService extends BaseService
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 更新处理时间
|
|
// 更新处理时间
|
|
|
- $this->model::where(['id'=> $userId,'mark'=>1])->update(['give_expire'=> time()]);
|
|
|
|
|
|
|
+ $this->model::where(['id'=> $userId,'mark'=>1])->update(['give_time'=> time()]);
|
|
|
\DB::commit();
|
|
\DB::commit();
|
|
|
|
|
|
|
|
return message( "VIP用户[ID:{$userId}]每月奖励处理成功", true);
|
|
return message( "VIP用户[ID:{$userId}]每月奖励处理成功", true);
|