LogEmailSend.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. namespace App\Console\Commands;
  3. use Illuminate\Console\Command;
  4. use Illuminate\Support\Facades\Input;
  5. use Modules\Camera\Entities\CameraList;
  6. use Modules\Camera\Enum\CameraEnum;
  7. use Modules\Camera\Services\CameraServices;
  8. use Modules\Camera\Http\Controllers\Api\TdwyController;
  9. use Modules\Mine\Entities\MineList;
  10. use Modules\Mine\Entities\MineListExt;
  11. use Modules\Mine\Enum\MineEnum;
  12. use Modules\Mine\Services\MineServices;
  13. use Illuminate\Support\Facades\DB;
  14. class LogEmailSend extends Command
  15. {
  16. /**
  17. * The name and signature of the console command.
  18. *
  19. * @var string
  20. */
  21. protected $signature = 'log:emailsend';
  22. /**
  23. * The console command description.
  24. *
  25. * @var string
  26. */
  27. protected $description = '摄像头访问记录邮件发送';
  28. /**
  29. * Create a new command instance.
  30. *
  31. * @return void
  32. */
  33. public function __construct()
  34. {
  35. parent::__construct();
  36. }
  37. /**
  38. * Execute the console command.
  39. *
  40. * @return mixed
  41. */
  42. public function handle()
  43. {
  44. $this->logSendEmail();
  45. }
  46. //同步区域列表
  47. public function logSendEmail()
  48. {
  49. $data['mine_id_list'] = '1,2,3';
  50. $data['email'] = '123';
  51. $data['created_at'] = date('Y-m-d H:i:s');
  52. $data['updated_at'] = date('Y-m-d H:i:s');
  53. DB::table('email')->insert($data);
  54. }
  55. }