From f7e6fe9dc74b9d28870e71aeebc174d72b6faeb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=8B=BC?= <2468023037@qq.com> Date: Tue, 18 Feb 2025 21:11:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=89=E6=95=88=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E9=A2=84=E7=95=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/WithdrawController.php | 2 -- process/Task3.php | 8 +++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controller/api/WithdrawController.php b/app/controller/api/WithdrawController.php index 6863d01..0d80312 100644 --- a/app/controller/api/WithdrawController.php +++ b/app/controller/api/WithdrawController.php @@ -204,8 +204,6 @@ class WithdrawController */ public function callback(Request $request) { - var_dump(22222222222222222222); var_dump($request->all()); - // Log::info('Withdraw callback received:', $request->all()); } } diff --git a/process/Task3.php b/process/Task3.php index dda66b2..3b7a5af 100644 --- a/process/Task3.php +++ b/process/Task3.php @@ -4,6 +4,7 @@ namespace process; use App\Utils\API\SendCode; use app\model\UserPhone; +use App\model\UserReward; use app\dao\UserRewardDao; use Workerman\Crontab\Crontab; use app\model\GetLodeLog; @@ -48,12 +49,13 @@ class Task3 // }); // // 每5秒执行一次 new Crontab('0 */5 * * * *', function () { - //获取今天在线时间超过6小时的用户 + //获取在线时间超过6小时的用户 $today = date('Y-m-d'); - $UserPhone = UserPhone::where('score', '>=', 120)->where('time', '<',140)->get(); + $UserPhone = UserPhone::where('score', '>=', 120)->where('score', '<',140)->get(); //判断用户绑定Whatsapp首次登录 foreach ($UserPhone as $key => $value) { $user_id = $value->user_id; + //判定有没有父级 $user = User::find($user_id); if (!$user) { continue; @@ -61,7 +63,7 @@ class Task3 //获取该用户的父级 $parent = User::find($user->f_id); //满足则加80积分 - UserRewardDao::base($parent->id, 5, 80, '推广收益'); + UserRewardDao::base($parent->id, 5, 80, '有效用户奖励'); //vip_id等级加1,并更新数据库 $parent->vip_id += 1; //今天邀请人数加1