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, // ]; // 2026-2-24合伙人总裁分红 // $userData = [ // 192 => 108, // 62 => 68, // 43 => 36, // 3 => 15, // 2393 => 15, // 2540 => 15, // 4001 => 15, // 4073 => 15, // 4899 => 15, // ]; // 2026-2-24合伙人钻石分红 // $userData = [ // 1 => 21, // 54 => 21 // ]; // 2026-2-24 3星合伙人分红 // $userData = [ // 14 => 13, // 46 => 13 // ]; // 2026-2-24 2星合伙人分红 4.66 // $userData = [ // 45=>4.66, // 47=>4.66, // 48=>4.66, // 61=>4.66, // 67=>4.66, // 77=>4.66, // 79=>4.66, // 81=>4.66, // 103=>4.66, // 106=>4.66, // 190=>4.66, // 191=>4.66, // 193=>4.66, // 220=>4.66, // 221=>4.66, // 247=>4.66, // 261=>4.66, // 262=>4.66, // 267=>4.66, // 411=>4.66, // 425=>4.66, // 444=>4.66, // 461=>4.66, // 490=>4.66, // 508=>4.66, // 523=>4.66, // 587=>4.66, // 598=>4.66, // 599=>4.66, // 818=>4.66, // 911=>4.66, // 1213=>4.66, // 1894=>4.66, // 1954=>4.66, // 2009=>4.66, // 3661=>4.66, // 3976=>4.66, // 4323=>4.66, // 4557=>4.66, // 4587=>4.66, // 4590=>4.66, // 4637=>4.66, // 4741=>4.66, // ]; // 2026-2-24 1星合伙人分红 6 // $userData = [ // 6 => 6, // 4838 => 6, // 16 => 6, // ]; // 2026-2-24 万人团分红 $userData = [ 17=>5, 22=>5, 26=>5, 39=>5, 43=>18, 47=>5, 61=>5, 67=>5, 74=>5, 75=>5, 77=>5, 79=>5, 80=>5, 89=>5, 95=>5, 103=>5, 108=>5, 109=>5, 125=>5, 133=>5, 134=>5, 135=>5, 162=>5, 186=>5, 211=>5, 228=>5, 229=>5, 230=>5, 263=>5, 264=>5, 269=>5, 272=>5, 274=>5, 284=>5, 285=>5, 288=>5, 291=>5, 292=>5, 294=>5, 296=>5, 298=>5, 303=>5, 304=>5, 311=>5, 312=>5, 314=>5, 317=>5, 321=>5, 323=>5, 324=>5, 325=>5, 326=>5, 328=>5, 330=>5, 334=>5, 335=>5, 336=>5, 341=>5, 342=>5, 351=>5, 358=>5, 360=>5, 361=>5, 362=>5, 368=>5, 376=>5, 377=>5, 381=>5, 382=>5, 383=>5, 384=>5, 387=>5, 389=>5, 390=>5, 393=>5, 394=>5, 396=>5, 397=>5, 403=>5, 409=>5, 414=>5, 423=>5, 424=>5, 425=>5, 427=>5, 428=>5, 429=>5, 431=>5, 432=>5, 433=>5, 434=>5, 435=>5, 436=>5, 442=>5, 444=>5, 450=>5, 451=>5, 452=>5, 453=>5, 454=>5, 455=>5, 456=>5, 457=>5, 458=>5, 460=>5, 462=>5, 465=>5, 466=>5, 467=>5, 471=>5, 472=>5, 473=>5, 474=>5, 475=>5, 476=>5, 478=>5, 479=>5, 480=>5, 485=>5, 486=>5, 487=>5, 489=>5, 491=>5, 492=>5, 493=>5, 494=>5, 495=>5, 496=>5, 497=>5, 500=>5, 501=>5, 502=>5, 503=>5, 504=>5, 506=>5, 507=>5, 509=>5, 511=>5, 512=>5, 513=>5, 514=>5, 515=>5, 516=>5, 517=>5, 518=>5, 519=>5, 520=>5, 522=>5, 523=>5, 524=>5, 526=>5, 530=>5, 531=>5, 534=>5, 535=>5, 540=>5, 541=>5, 542=>5, 543=>5, 544=>5, 548=>5, 549=>5, 554=>5, 555=>5, 556=>5, 557=>5, 558=>5, 561=>5, 563=>5, 567=>5, 576=>5, 589=>5, 604=>5, 3=>5, 2540=>5, 62=>18, 192=>18, 2393=>5, 4001=>5, 4073=>5, 4899=>5 ]; 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(); } } public function share_prosperity_test_group() { $groupUser = Db::name('shared_prosperity_group_user')->where('group_id',1)->select()->toArray(); $userData = array_column($groupUser,'user_id'); $money = 1.26; foreach ($userData as $key => $uid) { $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(); } } public function share_prosperity_test_partner() { $groupUser = Db::name('shared_prosperity_user')->where('partner_level',1)->select()->toArray(); $userData = array_column($groupUser,'user_id'); $money = 7.61; foreach ($userData as $key => $uid) { $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_PARTNER_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(); } } }