wechatTmp.php 645 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. declare (strict_types = 1);
  3. namespace app\admin\command;
  4. use think\console\Command;
  5. use think\console\Input;
  6. use think\console\input\Argument;
  7. use think\console\input\Option;
  8. use think\console\Output;use think\Wechat as wchat;
  9. class wechatTmp extends Command
  10. {
  11. protected function configure()
  12. {
  13. // 指令配置
  14. $this->setName('wechattmp')
  15. ->setDescription('the wechattmp command');
  16. }
  17. protected function execute(Input $input, Output $output)
  18. {
  19. $wechat_conf=['appid'=>env('WECHAT.APPID'),'appsecret'=>env('WECHAT.APPSECRET')];
  20. $this->wechat=new wchat($wechat_conf);
  21. }
  22. }