50 lines
1.1 KiB
PHP
50 lines
1.1 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 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
|
|
{
|
|
|
|
|
|
protected function configure()
|
|
{
|
|
$this->setName('test')
|
|
->setDescription('批量生成区域名称的拼音');
|
|
}
|
|
|
|
protected function execute(Input $input, Output $output)
|
|
{
|
|
$dispatch = OrderDispatch::where('id',177)->get();
|
|
$hookParams2 = [
|
|
'dispatch' => $dispatch,
|
|
'remark' => '手动派单给师傅:' . '老师傅' .'(123)',
|
|
];
|
|
Hook::listen('order_dispatch_change', $hookParams2);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|