47 lines
993 B
PHP
47 lines
993 B
PHP
<?php
|
|
|
|
namespace app\admin\command;
|
|
|
|
use app\admin\addresmart\Address;
|
|
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 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)
|
|
{
|
|
// $ret = SendMailLogic::sendToCustomStart('13038128325','今日的风儿','173xxxxxxxx');
|
|
$ret = SendMailLogic::sendToCustomStop('17381847365');
|
|
dd($ret);
|
|
// dd($ret);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|