作者 lyh

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

@@ -55,14 +55,14 @@ class UpdateRoute extends Command @@ -55,14 +55,14 @@ class UpdateRoute extends Command
55 */ 55 */
56 public function handle(){ 56 public function handle(){
57 $projectModel = new Project(); 57 $projectModel = new Project();
58 - $list = $projectModel->list(['id'=>['in',[1462]]]); 58 + $list = $projectModel->list(['id'=>['in',[802]]]);
59 $data = []; 59 $data = [];
60 foreach ($list as $v){ 60 foreach ($list as $v){
61 echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; 61 echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL;
62 ProjectServer::useProject($v['id']); 62 ProjectServer::useProject($v['id']);
63 // $this->getProduct(); 63 // $this->getProduct();
64 -// $this->setProductKeyword();  
65 - $this->getBlog(); 64 + $this->setProductKeyword();
  65 +// $this->getBlog();
66 DB::disconnect('custom_mysql'); 66 DB::disconnect('custom_mysql');
67 } 67 }
68 echo date('Y-m-d H:i:s') . 'end' . PHP_EOL; 68 echo date('Y-m-d H:i:s') . 'end' . PHP_EOL;
@@ -32,8 +32,7 @@ class CustomModuleExtentController extends BaseController @@ -32,8 +32,7 @@ class CustomModuleExtentController extends BaseController
32 'module_id.required' => 'module_id不能为空', 32 'module_id.required' => 'module_id不能为空',
33 ]); 33 ]);
34 $this->map['project_id'] = $this->user['project_id']; 34 $this->map['project_id'] = $this->user['project_id'];
35 - $filed = ['id','title','status','type','operator_id','project_id','module_id','created_at','updated_at'];  
36 - $lists = $customModuleExtend->list($this->map,$this->order,$filed); 35 + $lists = $customModuleExtend->list($this->map,$this->order,['id','title','key','status','type','operator_id','project_id','module_id','created_at','updated_at']);
37 $this->response('success',Code::SUCCESS,$lists); 36 $this->response('success',Code::SUCCESS,$lists);
38 } 37 }
39 38
@@ -109,4 +109,17 @@ class UserController extends BaseController @@ -109,4 +109,17 @@ class UserController extends BaseController
109 $userLogic->user_del(); 109 $userLogic->user_del();
110 $this->response('success'); 110 $this->response('success');
111 } 111 }
  112 +
  113 + /**
  114 + * @remark :获取当前项目的所有管理员
  115 + * @name :getUserLists
  116 + * @author :lyh
  117 + * @method :post
  118 + * @time :2024/8/6 9:40
  119 + */
  120 + public function getUserLists(){
  121 + $userModel = new UserModel();
  122 + $list = $userModel->list(['project_id'=>$this->user['project_id']]);
  123 + $this->response('success',Code::SUCCESS,$list);
  124 + }
112 } 125 }
@@ -372,8 +372,8 @@ class InitHtmlLogic extends BaseLogic @@ -372,8 +372,8 @@ class InitHtmlLogic extends BaseLogic
372 if(!empty($commonInfo['head_html']) && !empty($commonInfo['footer_html'])){ 372 if(!empty($commonInfo['head_html']) && !empty($commonInfo['footer_html'])){
373 $html = preg_replace('/<header\b[^>]*>(.*?)<\/header>/s', $commonInfo['head_html'], $html); 373 $html = preg_replace('/<header\b[^>]*>(.*?)<\/header>/s', $commonInfo['head_html'], $html);
374 $html = preg_replace('/<footer\b[^>]*>(.*?)<\/footer>/s', $commonInfo['footer_html'], $html); 374 $html = preg_replace('/<footer\b[^>]*>(.*?)<\/footer>/s', $commonInfo['footer_html'], $html);
375 - $html = preg_replace('/<style id="globalsojs-header">(.*?)<\/style>/s', $commonInfo['head_css'], $html);  
376 - $html = preg_replace('/<style id="globalsojs-footer">(.*?)<\/style>/s', $commonInfo['footer_css'], $html); 375 + $html = preg_replace('/<style id="globalsojs-header">(.*?)<\/style>/s', $commonInfo['head_style'] ?? '', $html);
  376 + $html = preg_replace('/<style id="globalsojs-footer">(.*?)<\/style>/s', $commonInfo['footer_style'] ?? '', $html);
377 } 377 }
378 return $html; 378 return $html;
379 } 379 }
@@ -44,7 +44,7 @@ Route::middleware(['bloginauth'])->group(function () { @@ -44,7 +44,7 @@ Route::middleware(['bloginauth'])->group(function () {
44 Route::any('/info', [\App\Http\Controllers\Bside\User\UserController::class, 'info'])->name('user_info'); 44 Route::any('/info', [\App\Http\Controllers\Bside\User\UserController::class, 'info'])->name('user_info');
45 Route::any('/role_list', [\App\Http\Controllers\Bside\User\UserController::class, 'role_list'])->name('user_role_list'); 45 Route::any('/role_list', [\App\Http\Controllers\Bside\User\UserController::class, 'role_list'])->name('user_role_list');
46 Route::any('/del', [\App\Http\Controllers\Bside\User\UserController::class, 'del'])->name('user_del'); 46 Route::any('/del', [\App\Http\Controllers\Bside\User\UserController::class, 'del'])->name('user_del');
47 - 47 + Route::any('/getUserLists', [\App\Http\Controllers\Bside\User\UserController::class, 'getUserLists'])->name('user_getUserLists');
48 }); 48 });
49 //项目独立头部和底部设置 49 //项目独立头部和底部设置
50 Route::prefix('pageSetting')->group(function () { 50 Route::prefix('pageSetting')->group(function () {