作者 lyh

gx

@@ -5,13 +5,7 @@ namespace App\Http\Controllers\Bside; @@ -5,13 +5,7 @@ namespace App\Http\Controllers\Bside;
5 use App\Enums\Common\Code; 5 use App\Enums\Common\Code;
6 use App\Helper\Common; 6 use App\Helper\Common;
7 use App\Http\Controllers\Controller; 7 use App\Http\Controllers\Controller;
8 -use App\Http\Logic\Aside\Project\ProjectLogic;  
9 use App\Http\Requests\Scene; 8 use App\Http\Requests\Scene;
10 -use App\Models\Domain\DomainInfo;  
11 -use App\Models\File\File;  
12 -use App\Models\File\Image;  
13 -use App\Models\User\User as UserModel;  
14 -use App\Services\CosService;  
15 use Illuminate\Http\JsonResponse; 9 use Illuminate\Http\JsonResponse;
16 use Illuminate\Http\Request; 10 use Illuminate\Http\Request;
17 use Illuminate\Http\Exceptions\HttpResponseException; 11 use Illuminate\Http\Exceptions\HttpResponseException;
@@ -91,12 +85,12 @@ class BaseController extends Controller @@ -91,12 +85,12 @@ class BaseController extends Controller
91 $this->map['name'] = ['like','%'.$v.'%']; 85 $this->map['name'] = ['like','%'.$v.'%'];
92 break; 86 break;
93 case "start_at": 87 case "start_at":
94 - $this->_btw[0] = $v;  
95 - $this->_btw[1] = date('Y-m-d H:i:s',time()); 88 + $this->_btw[0] = $v;
  89 + $this->_btw[1] = date('Y-m-d H:i:s',time());
96 $this->map['created_at'] = ['between', $this->_btw]; 90 $this->map['created_at'] = ['between', $this->_btw];
97 break; 91 break;
98 case "end_at": 92 case "end_at":
99 - $this->_btw[1] = $v; 93 + $this->_btw[1] = $v;
100 $this->map['updated_at'] = ['between', $this->_btw]; 94 $this->map['updated_at'] = ['between', $this->_btw];
101 break; 95 break;
102 default: 96 default:
@@ -22,7 +22,7 @@ class MailLogic extends BaseLogic @@ -22,7 +22,7 @@ class MailLogic extends BaseLogic
22 * @author :liyuhang 22 * @author :liyuhang
23 */ 23 */
24 public function mail_info(){ 24 public function mail_info(){
25 - $info = $this->info($this->param); 25 + $info = $this->model->read($this->param);
26 //生成一条阅读记录 26 //生成一条阅读记录
27 $mailUserModel = new MailUserModel(); 27 $mailUserModel = new MailUserModel();
28 $data = [ 28 $data = [
@@ -47,7 +47,7 @@ class RoleLogic extends BaseLogic @@ -47,7 +47,7 @@ class RoleLogic extends BaseLogic
47 * @time :2023/6/17 16:39 47 * @time :2023/6/17 16:39
48 */ 48 */
49 public function role_info(){ 49 public function role_info(){
50 - $info = $this->info($this->param); 50 + $info = $this->model->read($this->param);
51 return $this->success($info); 51 return $this->success($info);
52 } 52 }
53 53
@@ -365,24 +365,6 @@ class Logic @@ -365,24 +365,6 @@ class Logic
365 } 365 }
366 366
367 /** 367 /**
368 - * @param $map  
369 - * @name :详情  
370 - * @author :liyuhang  
371 - * @method  
372 - */  
373 - public function info($map,$file = ['*']){  
374 - $info = CommonHelper::get_user_cache($this->model->getTable(),$map['id']);  
375 - if(empty($info)){  
376 - $info = $this->model->read($map,$file);  
377 - if($info === false){  
378 - $this->fail('当前数据不存在');  
379 - }  
380 - CommonHelper::set_user_cache($info,$this->model->getTable(),$map['id']);  
381 - }  
382 - return $this->success($info);  
383 - }  
384 -  
385 - /**  
386 * 获取实例 368 * 获取实例
387 * @param mixed ...$params 369 * @param mixed ...$params
388 * @return static 370 * @return static