|
...
|
...
|
@@ -11,6 +11,7 @@ use App\Models\Inquiry\InquiryFormData; |
|
|
|
use App\Models\Nav\BNav;
|
|
|
|
use App\Models\Nav\BNavGroup;
|
|
|
|
use App\Models\Project\Project;
|
|
|
|
use App\Models\WebSetting\Translate as TranslateModel;
|
|
|
|
use App\Services\ProjectServer;
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
...
|
...
|
@@ -54,6 +55,24 @@ class Test extends Command |
|
|
|
*/
|
|
|
|
public function handle()
|
|
|
|
{
|
|
|
|
ProjectServer::useProject(3);
|
|
|
|
$data = [
|
|
|
|
'c' => 'c',
|
|
|
|
'b' => 'a',
|
|
|
|
'a' => 'b',
|
|
|
|
'e' => 'e',
|
|
|
|
];
|
|
|
|
$param = [
|
|
|
|
'type'=>1,
|
|
|
|
'project_id'=>3,
|
|
|
|
'url'=>'/',
|
|
|
|
'language_id'=>2,
|
|
|
|
'alias'=>'zh',
|
|
|
|
];
|
|
|
|
$param['data'] = json_encode($data,true);
|
|
|
|
TranslateModel::insert($param);
|
|
|
|
dd('end');
|
|
|
|
$this->model->add($param);
|
|
|
|
ProjectServer::useProject(1);
|
|
|
|
$group =BNavGroup::where(['id' => 1])->first();
|
|
|
|
$sort_list = json_decode($group->sort_list, true);
|
...
|
...
|
|