| xqd
@@ -5,6 +5,7 @@ namespace App\Console\Commands;
|
|
|
use App\Models\User;
|
|
|
use App\Models\UserVipLogModel;
|
|
|
use Illuminate\Console\Command;
|
|
|
+use Illuminate\Support\Facades\Log;
|
|
|
|
|
|
class VipOutTime extends Command
|
|
|
{
|
| xqd
@@ -47,6 +48,7 @@ class VipOutTime extends Command
|
|
|
//已经过期
|
|
|
UserVipLogModel::query()->where('id',$v['id'])->update(['status'=>0,'updated_at'=>date('Y-m-d H:i:s')]);
|
|
|
User::query()->where('id',$v['user_id'])->update(['is_vip'=>0]);
|
|
|
+ Log::info("用户".$v['user_id']." VIP已经过期,执行时间:".date('Y-m-d H:i:s'));
|
|
|
}else{
|
|
|
break;
|
|
|
}
|