正在显示
4 个修改的文件
包含
2 行增加
和
26 行删除
| @@ -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; |
| @@ -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 |
-
请 注册 或 登录 后发表评论