47 lines
1.0 KiB
PHP
47 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace app\admin\command;
|
|
|
|
use app\admin\addresmart\Address;
|
|
use app\admin\controller\AutoDispatchLogic;
|
|
use app\admin\controller\orders\DispatchLogic;
|
|
use app\admin\controller\SendMailLogic;
|
|
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 app\admin\controller\AmapTrait;
|
|
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\Lang;
|
|
use think\Model;
|
|
use function Symfony\Component\Clock\now;
|
|
|
|
class Test extends Command
|
|
{
|
|
use AmapTrait;
|
|
|
|
protected function configure()
|
|
{
|
|
$this->setName('test')
|
|
->setDescription('批量生成区域名称的拼音');
|
|
}
|
|
|
|
protected function execute(Input $input, Output $output)
|
|
{
|
|
$key = 'ae0ab397a2febfa1ce0a2c780f3f23a3';
|
|
$res = $this->getAddressByKeyword('重庆武隆区凤山街道锦江竹苑6幢31-4');
|
|
dd($res);
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|