request->get(); /** @var SharedProsperityTaskRepository $repository */ $repository = app()->make(SharedProsperityTaskRepository::class); $data = $repository->partner($get); return app('json')->success($data); } public function thankProfits() { $get = app()->request->get(); /** @var SharedProsperityTaskRepository $repository */ $repository = app()->make(SharedProsperityTaskRepository::class); $repository->thank($get); return app('json')->success(); } public function groupProfits() { $get = app()->request->get(); /** @var SharedProsperityTaskRepository $repository */ $repository = app()->make(SharedProsperityTaskRepository::class); $data = $repository->group($get); return app('json')->success($data); } public function testProfits() { // 李玉枝 国宝中 秒简化 李守之 赵娜 // 直推 // $userData = [ // 2393=>82.80, // 4324=>110.4, // 4073=>82.8, // 2540=>55.2, // 2950=>55.2 // // ]; // 总裁分红 // $userData = [ // // 李玉枝 // 2393=>18, // // 国宝中 // 4324=>15, // // 秒简化 // 4073=>13, // // 李守之 // 2540=>9, // // 赵娜 // 2950=>9, // // xuliping // 43=>289, // // lisuhong // 62=>364, // // liuyinxia // 192=>408, // // 钟起群 // 4758=>6, // // 王运香 // 4033=>6, // // 李建生 // 4348=>6, // // 张贵兰 // 4245=>6, // // 黄远学 // 4897=>6, // // 迟徳瑞 // 4896=>6, // // 陶艺雯 // 3160=>6, // // 王凤菲 // 4898=>6, // // 张娜 // 4899=>6, // // 刘洪军 // 4656=>6, // // 金刚 // 2846=>6, // // 刘亚娟没有手机号 // ]; // 万人团 $userData = [ // 国宝中 4324 => 6, // 秒简化 4073 => 6, // 李守之 2540 => 6, // 钟起群 4758 => 6, // 王运香 4033 => 6, // 李建生 4348 => 6, // 张贵兰 4245 => 6, // 黄远学 4897 => 6, // 迟徳瑞 4896 => 6, // 陶艺雯 3160 => 6, // 王凤菲 4898 => 6, // 张娜 4899 => 6, // 刘洪军 4656 => 6, // 金刚 2846 => 6, // 刘亚娟没有手机号 // xuliping 43 => 66, // lisuhong 62 => 66, // liuyinxia 192 => 66, ]; foreach ($userData as $uid => $money) { $bill = [ 'uid' => $uid, 'link_id' => 0, 'pm' => 1, 'title' => '共富万人团分红', 'category' => 'now_money', 'type' => 'commission', 'number' => $money, 'balance' => 0, 'mark' => '共富万人团分红', 'create_time' => date('Y-m-d H:i:s'), 'status' => 1, 'commission_type' => CommonEnum::COMMISSION_TYPE['SHARED_PROSPERITY_GROUP_COMMISSION']['code'], 'order_sn' => 0, 'tripartite' => 0, 'type_shop' => 0, 'mer_id' => 0, 'source' => 0, 'order_type' => 1, 'is_red_brokerage' => 0, 'gzc' => 3, 'take_time' => time(), 'district_id' => '', 'street_id' => '', 'month' => '', ]; $a = Db::name('user_bill')->insert($bill); $b = Db::name('user')->where('uid',$uid)->inc('brokerage_price',$money)->update(); } } }