ReportUserAndOrderToChannel.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: z-yang
  5. * Date: 2020/12/24
  6. * Time: 16:47
  7. */
  8. namespace App\Console\Commands\Channel;
  9. use Illuminate\Console\Command;
  10. use DB;
  11. class ReportUserAndOrderToChannel extends Command
  12. {
  13. /**
  14. * 执行命令 php artisan generate_order_day_stat
  15. *
  16. * The name and signature of the console command.
  17. *
  18. * @var string
  19. */
  20. protected $signature = 'channel:ReportUserAndOrderToChannel {--type=}';
  21. /**
  22. * The console command description.
  23. *
  24. * @var string
  25. */
  26. protected $description = '检测渠道账号状态';
  27. /**
  28. * Execute the console command.
  29. *
  30. * @return mixed
  31. */
  32. public function handle(){
  33. }
  34. private function reportOrders(){
  35. }
  36. private function reportUsers($date){
  37. $result = DB::table('report_to_channel_users')->where('created_at','>=',$date)
  38. ->where('report_status',0)
  39. ->select('id','uid','distribution_channel_id','register_ip','user_agent','user_created_at')->get();
  40. if(!$result)return ;
  41. foreach ($result as $item){
  42. }
  43. }
  44. }