Test.php 1001 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace App\Console\Commands\WechatPlatform;
  3. use App\Jobs\WechatPlatform\GZHSendKFMessage;
  4. use App\Service\Util\Support\Trace\TraceContext;
  5. use App\Service\WechatPlatform\WechatPlatformConstService;
  6. use EasyWeChat\Factory;
  7. use EasyWeChat\Kernel\Messages\Text;
  8. use Illuminate\Console\Command;
  9. use Illuminate\Support\Facades\Cache;
  10. use Illuminate\Support\Facades\DB;
  11. class Test extends Command
  12. {
  13. /**
  14. * The name and signature of the console command.
  15. *
  16. * @var string
  17. */
  18. protected $signature = 'WechatPlatform:Test';
  19. /**
  20. * The console command description.
  21. *
  22. * @var string
  23. */
  24. protected $description = 'Command description';
  25. /**
  26. * Execute the console command.
  27. */
  28. public function handle()
  29. {
  30. $info = [
  31. 'gzhId' => 8,
  32. 'messageId' => 6,
  33. 'traceInfo' => (new TraceContext())->getTraceInfo()
  34. ];
  35. $skf = new GZHSendKFMessage($info);
  36. $skf->handle();
  37. }
  38. }