WxArticle.php 602 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace App\Console\Commands;
  3. use App\Service\CustomerPondService;
  4. use App\Service\Weixin\WeixinService;
  5. use Illuminate\Console\Command;
  6. class WxArticle extends Command
  7. {
  8. /**
  9. * The console command description.
  10. *
  11. * @var string
  12. */
  13. protected $signature = 'command:getWxArticle';
  14. protected $description = '';
  15. public function __construct()
  16. {
  17. parent::__construct();
  18. }
  19. public function handle()
  20. {
  21. $service = new WeixinService();
  22. list($status,$msg) = $service->getArticle();
  23. echo $msg ?? 'success';
  24. }
  25. }