初始化
This commit is contained in:
34
app/command/account.php
Normal file
34
app/command/account.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\command;
|
||||
|
||||
use think\console\Command;
|
||||
use think\console\Input;
|
||||
use think\console\input\Argument;
|
||||
use think\console\input\Option;
|
||||
use think\console\Output;
|
||||
|
||||
|
||||
use Curl\Curl;
|
||||
use app\kernel\Lebolebo\Account as a;
|
||||
use app\kernel\Lebolebo\Curriculum;
|
||||
|
||||
class account extends Command
|
||||
{
|
||||
protected function configure()
|
||||
{
|
||||
// 指令配置
|
||||
$this->setName('account')
|
||||
->setDescription('the account command');
|
||||
}
|
||||
|
||||
protected function execute(Input $input, Output $output)
|
||||
{
|
||||
$account = new a();
|
||||
dump($account);
|
||||
dump($account->login('13088393927','393927'));
|
||||
// 指令输出
|
||||
$output->writeln('account');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user