Merge branch 'master' of https://git.shagain.club/shulang/webman
This commit is contained in:
commit
276fe8c298
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue