作者 赵彬吉
@@ -41,6 +41,7 @@ class Count extends Command @@ -41,6 +41,7 @@ class Count extends Command
41 public function handle() 41 public function handle()
42 { 42 {
43 $list = DB::table('gl_project')->where('gl_project.extend_type','=',0) 43 $list = DB::table('gl_project')->where('gl_project.extend_type','=',0)
  44 + ->where('gl_project.type','!=',0)
44 ->leftJoin('gl_project_deploy_build', 'gl_project.id', '=', 'gl_project_deploy_build.project_id') 45 ->leftJoin('gl_project_deploy_build', 'gl_project.id', '=', 'gl_project_deploy_build.project_id')
45 ->leftJoin('gl_project_deploy_optimize', 'gl_project.id', '=', 'gl_project_deploy_optimize.project_id') 46 ->leftJoin('gl_project_deploy_optimize', 'gl_project.id', '=', 'gl_project_deploy_optimize.project_id')
46 ->select($this->selectParam())->get(); 47 ->select($this->selectParam())->get();
@@ -37,6 +37,7 @@ class InquiryMonthlyCount extends Command @@ -37,6 +37,7 @@ class InquiryMonthlyCount extends Command
37 */ 37 */
38 public function handle(){ 38 public function handle(){
39 $list = DB::table('gl_project')->where('gl_project.extend_type','=',0) 39 $list = DB::table('gl_project')->where('gl_project.extend_type','=',0)
  40 + ->where('gl_project.type','!=',0)
40 ->leftJoin('gl_project_deploy_build', 'gl_project.id', '=', 'gl_project_deploy_build.project_id') 41 ->leftJoin('gl_project_deploy_build', 'gl_project.id', '=', 'gl_project_deploy_build.project_id')
41 ->leftJoin('gl_project_deploy_optimize', 'gl_project.id', '=', 'gl_project_deploy_optimize.project_id') 42 ->leftJoin('gl_project_deploy_optimize', 'gl_project.id', '=', 'gl_project_deploy_optimize.project_id')
42 ->select($this->selectParam())->get()->toArray(); 43 ->select($this->selectParam())->get()->toArray();
@@ -69,7 +69,7 @@ class Common @@ -69,7 +69,7 @@ class Common
69 } 69 }
70 } else { 70 } else {
71 //带原语种翻译 71 //带原语种翻译
72 - $result = Translate::translateSl($param['keywords'])->json(); 72 + $result = Translate::translateSl($param['keywords']);
73 if (isset($result['texts']['sl']) && isset(Translate::$tls_list[$result['texts']['sl']])) { 73 if (isset($result['texts']['sl']) && isset(Translate::$tls_list[$result['texts']['sl']])) {
74 $lang = Translate::$tls_list[$result['texts']['sl']]['text']; 74 $lang = Translate::$tls_list[$result['texts']['sl']]['text'];
75 } else { 75 } else {
  1 +<?php
  2 +
  3 +namespace App\Http\Controllers\Bside\Import;
  4 +
  5 +
  6 +use App\Enums\Common\Code;
  7 +use App\Http\Controllers\Bside\BaseController;
  8 +use App\Http\Logic\Bside\Import\ImportLogic;
  9 +use App\Http\Requests\Bside\Import\ImportTaskRequest;
  10 +
  11 +/**
  12 + * 新闻、博客、商品导入
  13 + * Class ImportController
  14 + * @package App\Http\Controllers\Bside\Import
  15 + */
  16 +class ImportController extends BaseController
  17 +{
  18 + /**
  19 + * 新增导入任务
  20 + * @param ImportTaskRequest $request
  21 + * @param ImportLogic $logic
  22 + * @throws \App\Exceptions\AsideGlobalException
  23 + * @throws \App\Exceptions\BsideGlobalException
  24 + * @author Akun
  25 + * @date 2023/09/20 11:36
  26 + */
  27 + public function save(ImportTaskRequest $request,ImportLogic $logic)
  28 + {
  29 + $request->validated();
  30 +
  31 + $logic->addImportTask();
  32 + $this->response('success', Code::SUCCESS);
  33 + }
  34 +}
@@ -41,19 +41,78 @@ class HrLogic extends BaseLogic @@ -41,19 +41,78 @@ class HrLogic extends BaseLogic
41 foreach ($this->model::specieField() as $v){ 41 foreach ($this->model::specieField() as $v){
42 $this->param = $this->setJson($v,$this->param); 42 $this->param = $this->setJson($v,$this->param);
43 } 43 }
  44 + if(isset($this->param['id']) && !empty($this->param['id'])){
  45 + $this->editHrManager();
  46 + }else{
  47 + $this->addHrManager();
  48 + }
  49 + return $this->success();
  50 + }
  51 +
  52 + /**
  53 + * @remark :添加人事信息时 同步添加管理员账号
  54 + * @name :addManager
  55 + * @author :lyh
  56 + * @method :post
  57 + * @time :2023/9/6 10:18
  58 + */
  59 + public function addHrManager(){
  60 + $managerModel = new Manage();
  61 + $info = $managerModel->read(['mobile'=>$this->param['mobile']]);
  62 + if($info !== false){
  63 + $this->fail('当前号码已存在');
  64 + }
  65 + $data = [
  66 + 'name'=>$this->param['name'],
  67 + 'mobile'=>$this->param['mobile'],
  68 + 'password'=>Hash::make('globalsov6'),
  69 + 'gid'=>4,
  70 + ];
44 DB::beginTransaction(); 71 DB::beginTransaction();
45 try { 72 try {
46 - if(isset($this->param['id']) && !empty($this->param['id'])){  
47 - $this->model->edit($this->param,['id'=>$this->param['id']]);  
48 - }else{  
49 - //添加管理员账号  
50 - $this->param['manage_id'] = $this->addManager($this->param['mobile'],$this->param['name']);  
51 - $this->model->add($this->param); 73 + $managerModel = new Manage();
  74 + $this->param['manage_id'] = $managerModel->addReturnId($data);
  75 + $this->model->add($this->param);
  76 + DB::commit();
  77 + }catch (\Exception $e){
  78 + DB::rollBack();
  79 + $this->fail('系统错误请联系管理员');
  80 + }
  81 + return $this->success();
  82 + }
  83 +
  84 + /**
  85 + * @remark :编辑人事信息
  86 + * @name :editHrManager
  87 + * @author :lyh
  88 + * @method :post
  89 + * @time :2023/9/20 15:06
  90 + */
  91 + public function editHrManager(){
  92 + $hrInfo = $this->model->read(['id'=>$this->param['id']],['id','mobile','manage_id']);
  93 + if($hrInfo === false){
  94 + $this->fail('当前数据不存在或已被删除');
  95 + }
  96 + $managerModel = new Manage();
  97 + if($hrInfo['mobile'] != $this->param['mobile']){
  98 + $mobileInfo = $this->model->read(['mobile'=>$this->param['mobile']],['id']);
  99 + if($mobileInfo !== false){
  100 + $this->fail('当前人事信息中手机号已存在');
52 } 101 }
  102 + $managerMobileInfo = $managerModel->read(['mobile'=>$this->param['mobile']],['id']);
  103 + if($managerMobileInfo !== false){
  104 + $this->fail('当前管理员信息中手机号已存在');
  105 + }
  106 + }
  107 + DB::beginTransaction();
  108 + try {
  109 + //同步更新管理员手机号码
  110 + $managerModel->edit(['mobile'=>$this->param['mobile']],['id'=>$hrInfo['manage_id']]);
  111 + $this->model->edit($this->param,['id'=>$this->param['id']]);
53 DB::commit(); 112 DB::commit();
54 }catch (\Exception $e){ 113 }catch (\Exception $e){
55 DB::rollBack(); 114 DB::rollBack();
56 - $this->fail('系统错误'); 115 + $this->fail('系统错误,请联系管理员');
57 } 116 }
58 return $this->success(); 117 return $this->success();
59 } 118 }
@@ -81,6 +140,13 @@ class HrLogic extends BaseLogic @@ -81,6 +140,13 @@ class HrLogic extends BaseLogic
81 return $this->success($data); 140 return $this->success($data);
82 } 141 }
83 142
  143 + /**
  144 + * @remark :转换
  145 + * @name :setJson
  146 + * @author :lyh
  147 + * @method :post
  148 + * @time :2023/9/20 15:23
  149 + */
84 //数组转json存储 150 //数组转json存储
85 public function setJson($str,$param){ 151 public function setJson($str,$param){
86 if(isset($param[$str]) && is_array($param[$str])){ 152 if(isset($param[$str]) && is_array($param[$str])){
@@ -194,27 +260,6 @@ class HrLogic extends BaseLogic @@ -194,27 +260,6 @@ class HrLogic extends BaseLogic
194 return $this->success($data); 260 return $this->success($data);
195 } 261 }
196 262
197 - /**  
198 - * @remark :添加人事信息时 同步添加管理员账号  
199 - * @name :addManager  
200 - * @author :lyh  
201 - * @method :post  
202 - * @time :2023/9/6 10:18  
203 - */  
204 - public function addManager($mobile,$name){  
205 - $managerModel = new Manage();  
206 - $info = $managerModel->read(['mobile'=>$mobile]);  
207 - if($info !== false){  
208 - $this->fail('当前号码已存在');  
209 - }  
210 - $data = [  
211 - 'name'=>$name,  
212 - 'mobile'=>$mobile,  
213 - 'password'=>Hash::make('globalsov6'),  
214 - 'gid'=>4,  
215 - ];  
216 - return $managerModel->addReturnId($data);  
217 - }  
218 263
219 /** 264 /**
220 * @param $page_size 265 * @param $page_size
@@ -6,6 +6,7 @@ namespace App\Http\Logic\Aside\Manage; @@ -6,6 +6,7 @@ namespace App\Http\Logic\Aside\Manage;
6 use App\Helper\Common; 6 use App\Helper\Common;
7 use App\Http\Logic\Aside\BaseLogic; 7 use App\Http\Logic\Aside\BaseLogic;
8 use App\Models\Manage\Manage; 8 use App\Models\Manage\Manage;
  9 +use App\Models\Manage\ManageHr;
9 use App\Models\Manage\Menu; 10 use App\Models\Manage\Menu;
10 use Illuminate\Support\Facades\Cache; 11 use Illuminate\Support\Facades\Cache;
11 use Illuminate\Support\Facades\Hash; 12 use Illuminate\Support\Facades\Hash;
@@ -35,22 +36,65 @@ class ManageLogic extends BaseLogic @@ -35,22 +36,65 @@ class ManageLogic extends BaseLogic
35 public function managerSave(){ 36 public function managerSave(){
36 try { 37 try {
37 if(isset($this->param['id']) && !empty($this->param['id'])){ 38 if(isset($this->param['id']) && !empty($this->param['id'])){
38 - if(isset($this->param['password']) && !empty($this->param['password'])){  
39 - $this->param['password'] = Hash::make($this->param['password']);  
40 - }  
41 - $this->model->edit($this->param,['id'=>$this->param['id']]); 39 + $this->editManager();
42 Common::del_user_cache('manager',$this->param['id'],'A'); 40 Common::del_user_cache('manager',$this->param['id'],'A');
43 }else{ 41 }else{
44 - $this->param['password'] = Hash::make($this->param['password']);  
45 - $this->model->add($this->param); 42 + $this->addManager();
46 } 43 }
47 }catch (\Exception $e){ 44 }catch (\Exception $e){
48 $this->fail('系统错误,请联系管理员'); 45 $this->fail('系统错误,请联系管理员');
49 } 46 }
50 -  
51 return $this->success(); 47 return $this->success();
52 } 48 }
53 49
  50 + /**
  51 + * @remark :添加管理员
  52 + * @name :addManager
  53 + * @author :lyh
  54 + * @method :post
  55 + * @time :2023/9/20 15:49
  56 + */
  57 + public function addManager(){
  58 + $managerInfo = $this->model->read(['mobile'=>$this->param['mobile']]);
  59 + if($managerInfo !== false){
  60 + $this->fail('当前手机号码已存在');
  61 + }
  62 + $this->param['password'] = Hash::make(isset($this->param['password']) ?? 'globalsov6');
  63 + $this->model->add($this->param);
  64 + $this->success();
  65 + }
  66 +
  67 + /**
  68 + * @remark :编辑管理员
  69 + * @name :editManager
  70 + * @author :lyh
  71 + * @method :post
  72 + * @time :2023/9/20 15:51
  73 + */
  74 + public function editManager(){
  75 + $info = $this->model->read(['id'=>$this->param['id']]);
  76 + if($info['mobile'] != $this->param['mobile']){
  77 + $mobileInfo = $this->model->read(['mobile'=>$this->param['mobile']]);
  78 + if($mobileInfo !== false){
  79 + $this->fail('当前手机号码在管理员信息中已存在');
  80 + }
  81 + //查看人事信息中是否关联当前管理员账号
  82 + $hrManagerModel = new ManageHr();
  83 + $hrInfo = $hrManagerModel->read(['manage_id'=>$this->param['id']]);
  84 + if($hrInfo !== false){
  85 + //查看是否号码在存在人事表中
  86 + $hrMobileInfo = $hrManagerModel->read(['mobile'=>$this->param['mobile']]);
  87 + if($hrMobileInfo !== false){
  88 + $this->fail('当前号码已存在人事信息中');
  89 + }
  90 + $hrManagerModel->edit(['mobile'=>$this->param['mobile']],['manage_id'=>$this->param['id']]);
  91 + }
  92 + }
  93 + if(isset($this->param['password']) && !empty($this->param['password'])){
  94 + $this->param['password'] = Hash::make($this->param['password']);
  95 + }
  96 + $this->model->edit($this->param,['id'=>$this->param['id']]);
  97 + }
54 98
55 /** 99 /**
56 * @remark :设置排序 100 * @remark :设置排序
@@ -75,14 +119,10 @@ class ManageLogic extends BaseLogic @@ -75,14 +119,10 @@ class ManageLogic extends BaseLogic
75 * @time :2023/8/28 16:10 119 * @time :2023/8/28 16:10
76 */ 120 */
77 public function getManagerInfo(){ 121 public function getManagerInfo(){
78 - $info = Common::get_user_cache('manager',$this->param['id'],'A');  
79 - if(empty($info)){  
80 - $info = $this->model->read(['id'=>$this->param['id']],  
81 - ['id','name','email','mobile','status','gid','sort','dept_id','is_dept_manager','created_at','role','updated_at']);  
82 - if($info === false){  
83 - $this->fail('error');  
84 - }  
85 - Common::set_user_cache($info,'manager',$this->param['id'],'A'); 122 + $info = $this->model->read(['id'=>$this->param['id']],
  123 + ['id','name','email','mobile','status','gid','sort','dept_id','is_dept_manager','created_at','role','updated_at']);
  124 + if($info === false){
  125 + $this->fail('error');
86 } 126 }
87 return $this->success($info); 127 return $this->success($info);
88 } 128 }
  1 +<?php
  2 +
  3 +namespace App\Http\Logic\Bside\Import;
  4 +
  5 +use App\Http\Logic\Bside\BaseLogic;
  6 +use App\Models\Import\ImportTask;
  7 +
  8 +
  9 +class ImportLogic extends BaseLogic
  10 +{
  11 + public function __construct()
  12 + {
  13 + parent::__construct();
  14 + $this->param = $this->requestAll;
  15 + $this->model = new ImportTask();
  16 + }
  17 +
  18 + /**
  19 + * 新增导入任务
  20 + * @return array
  21 + * @throws \App\Exceptions\AsideGlobalException
  22 + * @throws \App\Exceptions\BsideGlobalException
  23 + * @author Akun
  24 + * @date 2023/09/20 11:17
  25 + */
  26 + public function addImportTask()
  27 + {
  28 + $this->param['project_id'] = $this->user['project_id'];
  29 + $this->param['user_id'] = $this->user['id'];
  30 + $rs = $this->model->add($this->param);
  31 + if($rs === false){
  32 + $this->fail('error');
  33 + }
  34 + return $this->success();
  35 + }
  36 +}
@@ -52,18 +52,18 @@ class KeywordLogic extends BaseLogic @@ -52,18 +52,18 @@ class KeywordLogic extends BaseLogic
52 DB::beginTransaction(); 52 DB::beginTransaction();
53 try { 53 try {
54 if(isset($this->param['id']) && !empty($this->param['id'])){ 54 if(isset($this->param['id']) && !empty($this->param['id'])){
55 - $route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $this->param['id'], $this->user['project_id']);  
56 - $id = $this->editCategoryRoute($this->param['id'],$route);  
57 - $this->model->edit($this->param,['id'=>$id]); 55 + $info = $this->model->read(['id'=>$this->param['id']],['id','route']);
  56 + $route = $info['route'];
  57 + $this->model->edit($this->param,['id'=>$info['id']]);
58 }else{ 58 }else{
59 $this->param['project_id'] = $this->user['project_id']; 59 $this->param['project_id'] = $this->user['project_id'];
60 $this->param['created_at'] = date('Y-m-d H:i:s'); 60 $this->param['created_at'] = date('Y-m-d H:i:s');
61 $this->param['updated_at'] = $this->param['created_at']; 61 $this->param['updated_at'] = $this->param['created_at'];
62 $id = $this->model->insertGetId($this->param); 62 $id = $this->model->insertGetId($this->param);
  63 + //路由映射
  64 + $route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']);
  65 + $this->model->edit(['route'=>$route],['id'=>$id]);
63 } 66 }
64 - //路由映射  
65 - $route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']);  
66 - $this->model->edit(['route'=>$route],['id'=>$id]);  
67 //清除缓存 67 //清除缓存
68 Common::del_user_cache('product_keyword',$this->user['project_id']); 68 Common::del_user_cache('product_keyword',$this->user['project_id']);
69 DB::commit(); 69 DB::commit();
@@ -77,26 +77,6 @@ class KeywordLogic extends BaseLogic @@ -77,26 +77,6 @@ class KeywordLogic extends BaseLogic
77 } 77 }
78 78
79 /** 79 /**
80 - * @remark :编辑路由时生成路由记录  
81 - * @name :editCategoryRoute  
82 - * @author :lyh  
83 - * @method :post  
84 - * @time :2023/9/7 10:51  
85 - */  
86 - public function editCategoryRoute($id,$route){  
87 - //生成一条删除路由记录  
88 - $info = $this->model->read(['id'=>$id],['id','route']);  
89 - if($info['route'] != $route){  
90 - $data = [  
91 - 'source'=>RouteMap::SOURCE_PRODUCT_KEYWORD,  
92 - 'route'=>$info['route'],  
93 - ];  
94 - $this->setRouteDeleteSave($data);  
95 - }  
96 - return $id;  
97 - }  
98 -  
99 - /**  
100 * @remark :批量添加数据 80 * @remark :批量添加数据
101 * @name :batchAdd 81 * @name :batchAdd
102 * @author :lyh 82 * @author :lyh
@@ -82,7 +82,7 @@ class UserLoginLogic @@ -82,7 +82,7 @@ class UserLoginLogic
82 $token = md5(uniqid().$info['id']); 82 $token = md5(uniqid().$info['id']);
83 //存储缓存 83 //存储缓存
84 $info['token'] = $token; 84 $info['token'] = $token;
85 - Cache::add($token,$info,3600); 85 + Cache::add($token,$info,3600 * 6);
86 //更新用户信息 86 //更新用户信息
87 $rs = $this->model->edit(['token'=>$token],['id'=>$info['id']]); 87 $rs = $this->model->edit(['token'=>$token],['id'=>$info['id']]);
88 if($rs === false){ 88 if($rs === false){
@@ -121,7 +121,7 @@ class UserLoginLogic @@ -121,7 +121,7 @@ class UserLoginLogic
121 //存储缓存 121 //存储缓存
122 $info['token'] = $token; 122 $info['token'] = $token;
123 $info['manager_id'] = $data['manager_id'];//代表自动登录写入日志 123 $info['manager_id'] = $data['manager_id'];//代表自动登录写入日志
124 - Cache::add($token,$info,3600); 124 + Cache::add($token,$info,3600 * 6);
125 } 125 }
126 Common::set_user_login(['user_id'=>$info['id'],'ip'=>request()->ip(), 126 Common::set_user_login(['user_id'=>$info['id'],'ip'=>request()->ip(),
127 'project_id'=>$info['project_id'], 'type'=>1 ,'remark' => '自动登录,操作管理员为:'.$data['manager_id']]); 127 'project_id'=>$info['project_id'], 'type'=>1 ,'remark' => '自动登录,操作管理员为:'.$data['manager_id']]);
@@ -36,7 +36,7 @@ class ManageRequest extends FormRequest @@ -36,7 +36,7 @@ class ManageRequest extends FormRequest
36 'name'=>'required|max:20', 36 'name'=>'required|max:20',
37 'email'=>'email|max:64', 37 'email'=>'email|max:64',
38 'mobile' => ['required', new Mobile(), Rule::unique('gl_manage')->ignore(request()->get('id',0))], 38 'mobile' => ['required', new Mobile(), Rule::unique('gl_manage')->ignore(request()->get('id',0))],
39 - 'password' => 'required|min:6', 39 +// 'password' => 'required|min:6',
40 'status' => ['required', Rule::in(array_keys(Manage::statusMap()))], 40 'status' => ['required', Rule::in(array_keys(Manage::statusMap()))],
41 ]; 41 ];
42 } 42 }
@@ -50,8 +50,8 @@ class ManageRequest extends FormRequest @@ -50,8 +50,8 @@ class ManageRequest extends FormRequest
50 'email.max' => '邮箱不能超过64个字', 50 'email.max' => '邮箱不能超过64个字',
51 'mobile.required' => '请输入手机号', 51 'mobile.required' => '请输入手机号',
52 'mobile.unique' => '手机号已存在', 52 'mobile.unique' => '手机号已存在',
53 - 'password.required' => '请输入密码',  
54 - 'password.min' => '密码长度不能小于6位', 53 +// 'password.required' => '请输入密码',
  54 +// 'password.min' => '密码长度不能小于6位',
55 'status.required' => '请选择状态', 55 'status.required' => '请选择状态',
56 'status.in' => '状态值不正确', 56 'status.in' => '状态值不正确',
57 ]; 57 ];
  1 +<?php
  2 +
  3 +namespace App\Http\Requests\Bside\Import;
  4 +
  5 +use App\Models\Import\ImportTask;
  6 +use Illuminate\Foundation\Http\FormRequest;
  7 +use Illuminate\Validation\Rule;
  8 +
  9 +/**
  10 + * 产品新闻博客导入任务
  11 + * @author:akun
  12 + * @time 2023/9/20 11:32
  13 + * Class NavRequest
  14 + * @package App\Http\Requests\Bside\Nav
  15 + */
  16 +class ImportTaskRequest extends FormRequest
  17 +{
  18 + /**
  19 + * Determine if the user is authorized to make this request.
  20 + *
  21 + * @return bool
  22 + */
  23 + public function authorize()
  24 + {
  25 + return true;
  26 + }
  27 +
  28 + /**
  29 + * Get the validation rules that apply to the request.
  30 + *
  31 + * @return array
  32 + */
  33 + public function rules()
  34 + {
  35 + return [
  36 + 'type' => ['required', Rule::in([ImportTask::TYPE_PROJECT, ImportTask::TYPE_NEWS, ImportTask::TYPE_BLOG])],
  37 + 'file_url' => ['required'],
  38 + ];
  39 + }
  40 +
  41 + public function messages()
  42 + {
  43 + return [
  44 + 'type.required' => '导入类型必须',
  45 + 'type.in' => '导入类型错误',
  46 + 'file_url.required' => '文件地址必须',
  47 + ];
  48 + }
  49 +}
  1 +<?php
  2 +namespace App\Models\Import;
  3 +
  4 +use App\Models\Base;
  5 +
  6 +class ImportTask extends Base
  7 +{
  8 + protected $table = 'gl_import_task';
  9 +
  10 + const STATUS_UN = 0;//未开始
  11 + const STATUS_ING = 1;//导入中
  12 + const STATUS_COM = 2;//导入完成
  13 +
  14 + const TYPE_PROJECT = 1;//产品
  15 + const TYPE_NEWS = 2;//新闻
  16 + const TYPE_BLOG = 3;//博客
  17 +
  18 +
  19 +}
@@ -346,6 +346,11 @@ Route::middleware(['bloginauth'])->group(function () { @@ -346,6 +346,11 @@ Route::middleware(['bloginauth'])->group(function () {
346 Route::prefix('tdk')->group(function () { 346 Route::prefix('tdk')->group(function () {
347 Route::any('/', [\App\Http\Controllers\Bside\BCom\UpdateController::class, 'updateSeoTdk'])->name('tdk_updateSeoTdk'); 347 Route::any('/', [\App\Http\Controllers\Bside\BCom\UpdateController::class, 'updateSeoTdk'])->name('tdk_updateSeoTdk');
348 }); 348 });
  349 +
  350 + //导入任务
  351 + Route::prefix('import')->group(function () {
  352 + Route::any('/add_task', [\App\Http\Controllers\Bside\Import\ImportController::class, 'save'])->name('import_add_task');
  353 + });
349 }); 354 });
350 //无需登录验证的路由组 355 //无需登录验证的路由组
351 Route::group([], function () { 356 Route::group([], function () {