正在显示
2 个修改的文件
包含
2 行增加
和
6 行删除
| @@ -2,14 +2,11 @@ | @@ -2,14 +2,11 @@ | ||
| 2 | 2 | ||
| 3 | namespace App\Http\Logic\Aside\Project; | 3 | namespace App\Http\Logic\Aside\Project; |
| 4 | 4 | ||
| 5 | - | 5 | +use Illuminate\Support\Arr as SupArr; |
| 6 | use App\Helper\Arr; | 6 | use App\Helper\Arr; |
| 7 | use App\Helper\Common; | 7 | use App\Helper\Common; |
| 8 | use App\Helper\FormGlobalsoApi; | 8 | use App\Helper\FormGlobalsoApi; |
| 9 | use App\Http\Logic\Aside\BaseLogic; | 9 | use App\Http\Logic\Aside\BaseLogic; |
| 10 | -use App\Http\Logic\Aside\Manage\ManageLogic; | ||
| 11 | -use App\Models\ASide\APublicModel; | ||
| 12 | -use App\Models\Blog\Blog; | ||
| 13 | use App\Models\Channel\Channel; | 10 | use App\Models\Channel\Channel; |
| 14 | use App\Models\Channel\User; | 11 | use App\Models\Channel\User; |
| 15 | use App\Models\Channel\Zone; | 12 | use App\Models\Channel\Zone; |
| @@ -128,7 +125,7 @@ class ProjectLogic extends BaseLogic | @@ -128,7 +125,7 @@ class ProjectLogic extends BaseLogic | ||
| 128 | } | 125 | } |
| 129 | $param['confirm_file'] = Arr::a2s($param['confirm_file']); | 126 | $param['confirm_file'] = Arr::a2s($param['confirm_file']); |
| 130 | } | 127 | } |
| 131 | - $filteredData = array_only($param, $this->model->fillable); | 128 | + $filteredData = SupArr::only($param, $this->model->fillable); |
| 132 | $this->model->edit($filteredData,['id'=>$param['id']]); | 129 | $this->model->edit($filteredData,['id'=>$param['id']]); |
| 133 | Common::del_user_cache($this->model->getTable(),$param['id']); | 130 | Common::del_user_cache($this->model->getTable(),$param['id']); |
| 134 | return $this->success(); | 131 | return $this->success(); |
-
请 注册 或 登录 后发表评论