作者 赵彬吉

Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop

1 /node_modules 1 /node_modules
2 /public/hot 2 /public/hot
3 /public/storage 3 /public/storage
  4 +/public/.user.ini
4 /storage 5 /storage
5 /vendor 6 /vendor
6 /uploads 7 /uploads
7 -composer.json 8 +composer.lock
8 .env 9 .env
9 .env.backup 10 .env.backup
10 .phpunit.result.cache 11 .phpunit.result.cache
@@ -66,7 +66,6 @@ class ShareUser extends Command @@ -66,7 +66,6 @@ class ShareUser extends Command
66 //删除用户第三方配置 66 //删除用户第三方配置
67 if(!empty($v['profile_key'])){ 67 if(!empty($v['profile_key'])){
68 $this->del_profiles($v); 68 $this->del_profiles($v);
69 - continue;  
70 } 69 }
71 //更新数据库 70 //更新数据库
72 $this->save_ayr_share($ayr_share_model,$v); 71 $this->save_ayr_share($ayr_share_model,$v);
@@ -17,6 +17,7 @@ class AsideGlobalException extends Exception @@ -17,6 +17,7 @@ class AsideGlobalException extends Exception
17 { 17 {
18 $this->code = $code; 18 $this->code = $code;
19 $this->message = $message; 19 $this->message = $message;
  20 +
20 if (empty($this->message)) { 21 if (empty($this->message)) {
21 $this->message = Code::fromValue($code)->description; 22 $this->message = Code::fromValue($code)->description;
22 } 23 }
@@ -131,7 +131,7 @@ class BaseController extends Controller @@ -131,7 +131,7 @@ class BaseController extends Controller
131 ]; 131 ];
132 $this->header['Content-Type'] = $type; 132 $this->header['Content-Type'] = $type;
133 $this->header['token'] = $this->token; 133 $this->header['token'] = $this->token;
134 - $response = response($result,$result_code,$this->header);; 134 + $response = response($result,$result_code,$this->header);
135 throw new HttpResponseException($response); 135 throw new HttpResponseException($response);
136 } 136 }
137 137
@@ -145,7 +145,6 @@ class BaseController extends Controller @@ -145,7 +145,6 @@ class BaseController extends Controller
145 * @time :2023/6/17 16:34 145 * @time :2023/6/17 16:34
146 */ 146 */
147 protected function _extents($data) { 147 protected function _extents($data) {
148 -  
149 if (empty($data) || !is_array($data)) { 148 if (empty($data) || !is_array($data)) {
150 return empty($data) ? is_array($data) ? [] : '' : $data; 149 return empty($data) ? is_array($data) ? [] : '' : $data;
151 } 150 }
  1 +<?php
  2 +
  3 +namespace App\Http\Controllers\Aside\Manage;
  4 +use App\Enums\Common\Code;
  5 +use App\Http\Controllers\Aside\BaseController;
  6 +use Illuminate\Http\Request;
  7 +use App\Http\Logic\Aside\Manage\HrLogic;
  8 +
  9 +class HrController extends BaseController
  10 +{
  11 + public function list(Request $request, HrLogic $logic)
  12 + {
  13 + $list = $logic->getList($this->param);
  14 + return $this->response('success', Code::SUCCESS, $list);
  15 + }
  16 +
  17 + public function info(Request $request, HrLogic $logic){
  18 + $request->validate([
  19 + 'id'=>'required'
  20 + ],[
  21 + 'id.required' => 'ID不能为空'
  22 + ]);
  23 + $data = $logic->getInfo($this->param['id']);
  24 + //print_r($data);exit;
  25 + return $this->success($data);
  26 + }
  27 +
  28 + public function save(Request $request, HrLogic $logic){
  29 + $data = $logic->save($this->param);
  30 + return $this->success($data);
  31 + }
  32 +
  33 + public function parm_desciption(HrLogic $logic){
  34 + $data = $logic->parms();
  35 + return $this->success($data);
  36 + }
  37 +
  38 +}
@@ -33,14 +33,5 @@ class OptimizeController extends BaseController @@ -33,14 +33,5 @@ class OptimizeController extends BaseController
33 $this->response('success'); 33 $this->response('success');
34 } 34 }
35 35
36 - /**  
37 - * @remark :优化设置  
38 - * @name :save  
39 - * @author :lyh  
40 - * @method :post  
41 - * @time :2023/6/20 14:33  
42 - */  
43 - public function save(){  
44 - $this->response('success');  
45 - } 36 +
46 } 37 }
  1 +<?php
  2 +
  3 +namespace App\Http\Controllers\Aside;
  4 +
  5 +use App\Enums\Common\Code;
  6 +use App\Http\Logic\Aside\Service\ServiceLogic;
  7 +
  8 +/**
  9 + * @remark :企业服务设置信息
  10 + * @name :ServiceController
  11 + * @author :lyh
  12 + * @time :2023/6/25 16:13
  13 + */
  14 +class ServiceController extends BaseController
  15 +{
  16 +
  17 + /**
  18 + * @remark :列表
  19 + * @name :lists
  20 + * @author :lyh
  21 + * @method :post
  22 + * @time :2023/6/25 14:31
  23 + */
  24 + public function lists(ServiceLogic $serviceLogic){
  25 + $lists = $serviceLogic->serviceLists($this->map);
  26 + $this->response('success',Code::SUCCESS,$lists);
  27 + }
  28 +
  29 + /**
  30 + * @remark :新增或编辑
  31 + * @name :save
  32 + * @author :lyh
  33 + * @method :post
  34 + * @time :2023/6/25 11:51
  35 + */
  36 + public function save(ServiceLogic $serviceLogic){
  37 + $serviceLogic->serviceSave();
  38 + $this->response('success');
  39 + }
  40 +
  41 +
  42 +}
  1 +<?php
  2 +
  3 +namespace App\Http\Logic\Aside\Manage;
  4 +
  5 +
  6 +use App\Http\Logic\Aside\BaseLogic;
  7 +use App\Models\Manage\ManageHr;
  8 +
  9 +
  10 +/**
  11 + * Class ManageHrLogic
  12 + * @package App\Http\Logic\Aside\Manage
  13 + * @author zgj
  14 + * @date 2023/5/30
  15 + */
  16 +class HrLogic extends BaseLogic
  17 +{
  18 + public function __construct()
  19 + {
  20 + parent::__construct();
  21 + $this->model = new ManageHr();
  22 + }
  23 +
  24 +
  25 + public function save($param){
  26 + foreach ($this->model::specielField() as $v){
  27 + $param = $this->setJson($v,$param);
  28 + }
  29 + return parent::save($param);
  30 + }
  31 +
  32 + public function getInfo($id){
  33 + $data = parent::getInfo($id);
  34 + foreach ($this->model::specielField() as $v){
  35 + $data[$v] = json_decode($data[$v],true);
  36 + }
  37 + return $data;
  38 + }
  39 +
  40 + //数组转json存储
  41 + public function setJson($str,$param){
  42 + if(isset($param[$str]) && is_array($param[$str])){
  43 + $param[$str] = json_encode($param[$str]);
  44 + }else{
  45 + $param[$str] = '';
  46 + }
  47 + return $param;
  48 + }
  49 +
  50 + public function parms(){
  51 + $data['belong_group'] = $this->model::belongGroup();
  52 + $data['education'] = $this->model::education();
  53 + $data['entry_position'] = $this->model::entryPosition();
  54 + $data['p_level'] = $this->model::pLevel();
  55 + $data['dangyuan'] = $this->model::dangyuan();
  56 + $data['dangzhibu'] = $this->model::dangzhibu();
  57 + return $data;
  58 + }
  59 +}
  1 +<?php
  2 +
  3 +namespace App\Http\Logic\Aside\Service;
  4 +
  5 +use App\Http\Logic\Aside\BaseLogic;
  6 +use App\Models\Service\Service;
  7 +
  8 +class ServiceLogic extends BaseLogic
  9 +{
  10 + public function __construct()
  11 + {
  12 + parent::__construct();
  13 + $this->model = new Service();
  14 + $this->param = $this->requestAll;
  15 + }
  16 +
  17 + /**
  18 + * @remark :企业服务列表
  19 + * @name :serviceLists
  20 + * @author :lyh
  21 + * @method :post
  22 + * @time :2023/6/25 14:32
  23 + */
  24 + public function serviceLists($map){
  25 + $map['type'] = 1;
  26 + $lists = $this->model->list($map,'created_at');
  27 + foreach ($lists as $k => $v){
  28 + switch ($v['key']){
  29 + case 'images':
  30 + $arr = explode(',',$v['values']);
  31 + foreach ($arr as $k1 => $v1){
  32 + $v['images_link'][$k1] = url('a/image/'.$v1);
  33 + }
  34 + break;
  35 + case 'android':
  36 + $v['android_link'] = url('a/image/'.$v['values']);
  37 + break;
  38 + case 'ios':
  39 + $v['ios_link'] = url('a/image/'.$v['values']);
  40 + break;
  41 + }
  42 + $lists[$k] = $v;
  43 + }
  44 + return $this->success($lists);
  45 + }
  46 +
  47 +
  48 + /**
  49 + * @remark :新增或编辑
  50 + * @name :serviceSave
  51 + * @author :lyh
  52 + * @method :post
  53 + * @time :2023/6/25 13:45
  54 + */
  55 + public function serviceSave(){
  56 + //删除以前的配置
  57 + try {
  58 + $this->model->del(['type'=>1]);
  59 + $this->model->insert($this->param['data']);
  60 + }catch (\Exception $e){
  61 + $this->fail('error');
  62 + }
  63 + return $this->success();
  64 + }
  65 +
  66 +
  67 +}
@@ -4,9 +4,9 @@ namespace App\Http\Logic\Bside\HomeCount; @@ -4,9 +4,9 @@ namespace App\Http\Logic\Bside\HomeCount;
4 4
5 5
6 use App\Http\Logic\Bside\BaseLogic; 6 use App\Http\Logic\Bside\BaseLogic;
7 -use App\Models\EnterpriseService\EnterpriseService as EnterpriseServiceModel;  
8 use App\Models\HomeCount\Count; 7 use App\Models\HomeCount\Count;
9 use App\Models\RankData\RankData as RankDataModel; 8 use App\Models\RankData\RankData as RankDataModel;
  9 +use App\Models\Service\Service;
10 use Carbon\Carbon; 10 use Carbon\Carbon;
11 use Illuminate\Support\Facades\DB; 11 use Illuminate\Support\Facades\DB;
12 12
@@ -169,8 +169,8 @@ class CountLogic extends BaseLogic @@ -169,8 +169,8 @@ class CountLogic extends BaseLogic
169 * @time :2023/5/25 10:22 169 * @time :2023/5/25 10:22
170 */ 170 */
171 public function enterprise_service(){ 171 public function enterprise_service(){
172 - $enterpriseServiceModel = new EnterpriseServiceModel();  
173 - $info = $enterpriseServiceModel->read(['status'=>0]); 172 + $serviceModel = new Service();
  173 + $info = $serviceModel->list(['type'=>1],'created_at');
174 return $this->success($info); 174 return $this->success($info);
175 } 175 }
176 } 176 }
@@ -145,9 +145,7 @@ class Logic @@ -145,9 +145,7 @@ class Logic
145 $this->model[$name] = $value; 145 $this->model[$name] = $value;
146 } 146 }
147 } 147 }
148 -  
149 $res = $this->model->save(); 148 $res = $this->model->save();
150 -  
151 if($res){ 149 if($res){
152 //清缓存 150 //清缓存
153 if($this->is_cache && !empty($param['id'])){ 151 if($this->is_cache && !empty($param['id'])){
  1 +<?php
  2 +
  3 +namespace App\Models\Aside;
  4 +
  5 +use Illuminate\Database\Eloquent\Factories\HasFactory;
  6 +use Illuminate\Database\Eloquent\Model;
  7 +
  8 +class ManageHrLogModel extends Model
  9 +{
  10 + protected $table = 'gl_manage_hr_log';
  11 + use HasFactory;
  12 +}
  1 +<?php
  2 +
  3 +namespace App\Models\Aside;
  4 +
  5 +use Illuminate\Database\Eloquent\Factories\HasFactory;
  6 +use Illuminate\Database\Eloquent\Model;
  7 +use App\Models\Base;
  8 +
  9 +class ManageHrModel extends Base
  10 +{
  11 + protected $table = 'gl_manage_hrs';
  12 + //use HasFactory;
  13 + protected $guarded = ['updated_at'];
  14 + /**
  15 + * 归属小组
  16 + * @return string[]
  17 + * @author zgj
  18 + * @date 2023/5/31
  19 + */
  20 + public static function belongGroup()
  21 + {
  22 + return [
  23 + 1 => 'KA组',
  24 + 2 => 'A组',
  25 + 3 => 'B组',
  26 + 4 => 'C组',
  27 + 5 => 'D组',
  28 + 6 => 'E组',
  29 + 7 => 'F组',
  30 + 8 => 'G组',
  31 + 9 => 'H组',
  32 + 10 => 'GA组',
  33 + 11=> 'GB组',
  34 + 12 => 'GC组',
  35 + 13 => '前端组',
  36 + 14 => '后端组',
  37 + 15 => '黑格组',
  38 + 16 => '售后组',
  39 + 0 => '其他',
  40 + ];
  41 + }
  42 +
  43 + /**
  44 + * 学历
  45 + * @return string[]
  46 + * @author zgj
  47 + * @date 2023/5/31
  48 + */
  49 + public static function education()
  50 + {
  51 + return [
  52 + 1 => '专科',
  53 + 2 => '本科',
  54 + 3 => '研究生及以上',
  55 + 0 => '其他',
  56 + ];
  57 + }
  58 + /**
  59 + * 入职岗位
  60 + * @return string[]
  61 + * @author zgj
  62 + * @date 2023/5/31
  63 + */
  64 + public static function entryPosition()
  65 + {
  66 + return [
  67 + 1 => '优化师',
  68 + 2 => '优化师助理',
  69 + 3 => '优化顾问',
  70 + 4 => '项目经理',
  71 + 5 => '平面设计',
  72 + 6 => '技术经理',
  73 + 7 => '技术主管',
  74 + 8 => '技术总监',
  75 + 9 => '渠道经理',
  76 + 10 => '前端研发',
  77 + 11=> '后端研发',
  78 + 12 => '行政财务',
  79 + 13 => '品牌营销',
  80 + 14 => '销售经理',
  81 + 15 => '销售主管',
  82 + 16 => '售后技术',
  83 + 17 => '售后服务',
  84 + 18 => '外贸销售',
  85 + 19 => '渠道助理',
  86 + 20 => '黑格运营',
  87 + 21 => '运营',
  88 + 22 => '短视频剪辑师',
  89 + 23 => '人事',
  90 + 24 => '采购',
  91 + 0 => '其他',
  92 + ];
  93 + }
  94 +
  95 + /**
  96 + * 级别序列
  97 + * @return string[]
  98 + * @author zgj
  99 + * @date 2023/5/31
  100 + */
  101 + public static function pLevel()
  102 + {
  103 + return [
  104 + 0 => '实习期/试用期(P0)',
  105 + 1 => '初级(P1)',
  106 + 2 => '初级(P2)',
  107 + 3 => '初级(P3)',
  108 + 4 => '中级(P4)',
  109 + 5 => '中级(P5)',
  110 + 6 => '中级(P6)',
  111 + 7 => '高级(P7)',
  112 + 8 => '高级(P8)',
  113 + 9 => '高级(P9)',
  114 + 10 => '高级(P10)',
  115 + 11=> '职务初级(M1)',
  116 + 12 => '职务初级(M2)',
  117 + 13 => '职务初级(M3)',
  118 + 14 => '职务中级(M4)',
  119 + 15 => '职务中级(M5)',
  120 + 16 => '职务中级(M6)',
  121 + 17 => '职务高级(M7)',
  122 + 18 => '职务高级(M8)',
  123 + 19 => '职务高级(M9)',
  124 + 20 => '职务高级(M10)',
  125 + ];
  126 + }
  127 + /**
  128 + * 是否党员
  129 + * @return string[]
  130 + * @author zgj
  131 + * @date 2023/5/31
  132 + */
  133 + public static function dangyuan()
  134 + {
  135 + return [
  136 + 0 => '群众',
  137 + 1 => '预备党员',
  138 + 2 => '正式党员',
  139 + ];
  140 + }
  141 +
  142 + /**
  143 + * 是否有党支部
  144 + * @return string[]
  145 + * @author zgj
  146 + * @date 2023/5/31
  147 + */
  148 + public static function dangzhibu()
  149 + {
  150 + return [
  151 + 0 => '无',
  152 + 1 => '是',
  153 + 2 => '否',
  154 + ];
  155 + }
  156 +}
1 -<?php  
2 -  
3 -namespace App\Models\EnterpriseService;  
4 -  
5 -use App\Models\Base;  
6 -  
7 -class EnterpriseService extends Base  
8 -{  
9 - protected $table = 'gl_enterprise_service';  
10 -}  
  1 +<?php
  2 +
  3 +namespace App\Models\Manage;
  4 +use App\Models\Base;
  5 +
  6 +class ManageHr extends Base
  7 +{
  8 + protected $table = 'gl_manage_hr';
  9 +
  10 + /**
  11 + * 特殊字段
  12 + * @return string[]
  13 + * @author zgj
  14 + * @date 2023/5/31
  15 + */
  16 + public static function specielField(){
  17 + return ['photo_gallery','id_card_gallery','certificate_gallery','career_history','learning_history'];
  18 + }
  19 +
  20 + /**
  21 + * 归属小组
  22 + * @return string[]
  23 + * @author zgj
  24 + * @date 2023/5/31
  25 + */
  26 + public static function belongGroup()
  27 + {
  28 + return [
  29 + 1 => 'KA组',
  30 + 2 => 'A组',
  31 + 3 => 'B组',
  32 + 4 => 'C组',
  33 + 5 => 'D组',
  34 + 6 => 'E组',
  35 + 7 => 'F组',
  36 + 8 => 'G组',
  37 + 9 => 'H组',
  38 + 10 => 'GA组',
  39 + 11=> 'GB组',
  40 + 12 => 'GC组',
  41 + 13 => '前端组',
  42 + 14 => '后端组',
  43 + 15 => '黑格组',
  44 + 16 => '售后组',
  45 + 0 => '其他',
  46 + ];
  47 + }
  48 +
  49 + /**
  50 + * 学历
  51 + * @return string[]
  52 + * @author zgj
  53 + * @date 2023/5/31
  54 + */
  55 + public static function education()
  56 + {
  57 + return [
  58 + 1 => '专科',
  59 + 2 => '本科',
  60 + 3 => '研究生及以上',
  61 + 0 => '其他',
  62 + ];
  63 + }
  64 + /**
  65 + * 入职岗位
  66 + * @return string[]
  67 + * @author zgj
  68 + * @date 2023/5/31
  69 + */
  70 + public static function entryPosition()
  71 + {
  72 + return [
  73 + 1 => '优化师',
  74 + 2 => '优化师助理',
  75 + 3 => '优化顾问',
  76 + 4 => '项目经理',
  77 + 5 => '平面设计',
  78 + 6 => '技术经理',
  79 + 7 => '技术主管',
  80 + 8 => '技术总监',
  81 + 9 => '渠道经理',
  82 + 10 => '前端研发',
  83 + 11=> '后端研发',
  84 + 12 => '行政财务',
  85 + 13 => '品牌营销',
  86 + 14 => '销售经理',
  87 + 15 => '销售主管',
  88 + 16 => '售后技术',
  89 + 17 => '售后服务',
  90 + 18 => '外贸销售',
  91 + 19 => '渠道助理',
  92 + 20 => '黑格运营',
  93 + 21 => '运营',
  94 + 22 => '短视频剪辑师',
  95 + 23 => '人事',
  96 + 24 => '采购',
  97 + 0 => '其他',
  98 + ];
  99 + }
  100 +
  101 + /**
  102 + * 级别序列
  103 + * @return string[]
  104 + * @author zgj
  105 + * @date 2023/5/31
  106 + */
  107 + public static function pLevel()
  108 + {
  109 + return [
  110 + 0 => '实习期/试用期(P0)',
  111 + 1 => '初级(P1)',
  112 + 2 => '初级(P2)',
  113 + 3 => '初级(P3)',
  114 + 4 => '中级(P4)',
  115 + 5 => '中级(P5)',
  116 + 6 => '中级(P6)',
  117 + 7 => '高级(P7)',
  118 + 8 => '高级(P8)',
  119 + 9 => '高级(P9)',
  120 + 10 => '高级(P10)',
  121 + 11=> '职务初级(M1)',
  122 + 12 => '职务初级(M2)',
  123 + 13 => '职务初级(M3)',
  124 + 14 => '职务中级(M4)',
  125 + 15 => '职务中级(M5)',
  126 + 16 => '职务中级(M6)',
  127 + 17 => '职务高级(M7)',
  128 + 18 => '职务高级(M8)',
  129 + 19 => '职务高级(M9)',
  130 + 20 => '职务高级(M10)',
  131 + ];
  132 + }
  133 + /**
  134 + * 是否党员
  135 + * @return string[]
  136 + * @author zgj
  137 + * @date 2023/5/31
  138 + */
  139 + public static function dangyuan()
  140 + {
  141 + return [
  142 + 0 => '群众',
  143 + 1 => '预备党员',
  144 + 2 => '正式党员',
  145 + ];
  146 + }
  147 +
  148 + /**
  149 + * 是否有党支部
  150 + * @return string[]
  151 + * @author zgj
  152 + * @date 2023/5/31
  153 + */
  154 + public static function dangzhibu()
  155 + {
  156 + return [
  157 + 0 => '无',
  158 + 1 => '是',
  159 + 2 => '否',
  160 + ];
  161 + }
  162 +}
  1 +<?php
  2 +
  3 +namespace App\Models\Service;
  4 +
  5 +use App\Models\Base;
  6 +
  7 +/**
  8 + * @remark :企业服务中心设置
  9 + * @name :Service
  10 + * @author :lyh
  11 + * @time :2023/6/25 11:53
  12 + */
  13 +class Service extends Base
  14 +{
  15 + protected $table = 'gl_service_setting';
  16 +}
此 diff 太大无法显示。
@@ -5,7 +5,8 @@ @@ -5,7 +5,8 @@
5 use \Illuminate\Support\Facades\Route; 5 use \Illuminate\Support\Facades\Route;
6 use \App\Http\Controllers\Aside; 6 use \App\Http\Controllers\Aside;
7 7
8 -//必须登录验证的路由组 8 +
  9 +
9 Route::middleware(['aloginauth'])->group(function () { 10 Route::middleware(['aloginauth'])->group(function () {
10 Route::get('/', [Aside\IndexController::class, 'index'])->name('admin.home.white'); 11 Route::get('/', [Aside\IndexController::class, 'index'])->name('admin.home.white');
11 Route::get('/get_menu', [Aside\IndexController::class, 'get_menu'])->name('admin.get_menu.white'); 12 Route::get('/get_menu', [Aside\IndexController::class, 'get_menu'])->name('admin.get_menu.white');
@@ -45,6 +46,7 @@ Route::middleware(['aloginauth'])->group(function () { @@ -45,6 +46,7 @@ Route::middleware(['aloginauth'])->group(function () {
45 Route::any('/read', [Aside\User\ProjectDeptController::class, 'read'])->name('admin.group_info'); 46 Route::any('/read', [Aside\User\ProjectDeptController::class, 'read'])->name('admin.group_info');
46 }); 47 });
47 48
  49 +
48 }); 50 });
49 51
50 //ai指令 52 //ai指令
@@ -112,6 +114,12 @@ Route::middleware(['aloginauth'])->group(function () { @@ -112,6 +114,12 @@ Route::middleware(['aloginauth'])->group(function () {
112 Route::any('/empowerDomain', [Aside\Project\OptimizeController::class, 'empowerDomain'])->name('admin.empowerDomain'); 114 Route::any('/empowerDomain', [Aside\Project\OptimizeController::class, 'empowerDomain'])->name('admin.empowerDomain');
113 }); 115 });
114 116
  117 + //企业服务配置信息
  118 + Route::prefix('service')->group(function () {
  119 + Route::any('/', [Aside\ServiceController::class, 'lists'])->name('admin.service_lists');
  120 + Route::any('/save', [Aside\ServiceController::class, 'save'])->name('admin.service_save');
  121 + });
  122 +
115 //项目管理 123 //项目管理
116 Route::prefix('project')->group(function () { 124 Route::prefix('project')->group(function () {
117 Route::get('/', [Aside\Project\ProjectController::class, 'list'])->name('admin.project'); 125 Route::get('/', [Aside\Project\ProjectController::class, 'list'])->name('admin.project');
@@ -167,8 +175,16 @@ Route::middleware(['aloginauth'])->group(function () { @@ -167,8 +175,16 @@ Route::middleware(['aloginauth'])->group(function () {
167 Route::get('/delete_list', [Aside\Domain\DomainInfoController::class, 'delete_list'])->name('admin.domain_delete_list'); // 删除列表 175 Route::get('/delete_list', [Aside\Domain\DomainInfoController::class, 'delete_list'])->name('admin.domain_delete_list'); // 删除列表
168 Route::any('/restore', [Aside\Domain\DomainInfoController::class, 'restore'])->name('admin.domain_restore'); // 恢复 176 Route::any('/restore', [Aside\Domain\DomainInfoController::class, 'restore'])->name('admin.domain_restore'); // 恢复
169 Route::get('/log', [Aside\Domain\DomainInfoLogController::class, 'lists'])->name('admin.domain_log_lists'); // 日志 177 Route::get('/log', [Aside\Domain\DomainInfoLogController::class, 'lists'])->name('admin.domain_log_lists'); // 日志
170 - });  
171 178
  179 + });
  180 + //图片操作
  181 + Route::prefix('images')->group(function () {
  182 + Route::post('/upload', [\App\Http\Controllers\File\ImageController::class, 'upload'])->name('image_upload');
  183 + });
  184 + //文件上传第三方操作
  185 + Route::prefix('files')->group(function () {
  186 + Route::post('/upload', [\App\Http\Controllers\File\FileController::class, 'upload'])->name('files_upload');
  187 + });
172 // 自定义页面 模板,头部底部 188 // 自定义页面 模板,头部底部
173 Route::prefix('template')->group(function () { 189 Route::prefix('template')->group(function () {
174 Route::get('/', [\App\Http\Controllers\Aside\TemplateController::class, 'index'])->name('admin.template'); 190 Route::get('/', [\App\Http\Controllers\Aside\TemplateController::class, 'index'])->name('admin.template');