You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
namespace App\Command;
use App\Helper\Client\Lanhuo;
use Hyperf\Command\Command as HyperfCommand;
use Hyperf\Command\Annotation\Command;
use Hyperf\Contract\ContainerInterface;
/**
* @Command
*/
class JinlingCommand extends HyperfCommand
{
/**
* @var ContainerInterface
*/
protected $container;
protected $admin;
public function __construct(ContainerInterface $container)
{
$this->container = $container;
parent::__construct('jinling');
}
public function configure()
{
parent::configure();
$this->setDescription('廖金灵测试');
}
public function handle()
{
Lanhuo::addUser([
'user_id' => 111,
'account' => 'bbbbbbbabc111',
'phone' => '18888888888',
'device_type' => 2, // 设备类型(1-andriod 2-ios)
'device_number' => 'ABCD',
'name' =>'哈哈哈',
'id_card' => '350824199911111111',
'is_real' => 1, // 是否实名(1-实名 0-未实名)
]);
}
}