51 lines
1.0 KiB
PHP
51 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace app\admin\command;
|
|
|
|
use app\admin\addresmart\Address;
|
|
use app\admin\controller\orders\DispatchLogic;
|
|
use app\admin\model\Order;
|
|
use app\admin\model\OrderDispatch;
|
|
use app\admin\model\OrderReview;
|
|
use app\admin\model\Worker;
|
|
use app\admin\model\WorkerItem;
|
|
use think\Collection;
|
|
use think\console\Command;
|
|
use think\console\Input;
|
|
use think\console\Output;
|
|
use think\Db;
|
|
use think\exception\DbException;
|
|
use think\Hook;
|
|
use think\Model;
|
|
use function Symfony\Component\Clock\now;
|
|
|
|
class Test extends Command
|
|
{
|
|
|
|
|
|
protected function configure()
|
|
{
|
|
$this->setName('test')
|
|
->setDescription('批量生成区域名称的拼音');
|
|
}
|
|
|
|
protected function execute(Input $input, Output $output)
|
|
{
|
|
$res = \app\common\library\Sms::notice('17381847364',[], 'start_worker');
|
|
|
|
$alisms = new \addons\alisms\library\Alisms();
|
|
$ret = $alisms->mobile('13038128325')
|
|
->template('SMS_487375365')
|
|
->sign('超邦手')
|
|
->send();
|
|
|
|
dd($ret);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|