wugg 1 jaar geleden
bovenliggende
commit
67e53f11e4
1 gewijzigde bestanden met toevoegingen van 28 en 0 verwijderingen
  1. 28 0
      app/admin/command/wechatTmp.php

+ 28 - 0
app/admin/command/wechatTmp.php

@@ -0,0 +1,28 @@
+<?php
+declare (strict_types = 1);
+
+namespace app\admin\command;
+
+use think\console\Command;
+use think\console\Input;
+use think\console\input\Argument;
+use think\console\input\Option;
+use think\console\Output;use think\Wechat as wchat;
+
+class wechatTmp extends Command
+{
+    protected function configure()
+    {
+        // 指令配置
+        $this->setName('wechattmp')
+            ->setDescription('the wechattmp command');
+    }
+
+    protected function execute(Input $input, Output $output)
+    {
+        $wechat_conf=['appid'=>env('WECHAT.APPID'),'appsecret'=>env('WECHAT.APPSECRET')];
+		$this->wechat=new wchat($wechat_conf);
+		
+		
+    }
+}