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