正在显示
5 个修改的文件
包含
9 行增加
和
2 行删除
| @@ -69,6 +69,9 @@ class BlogController extends BaseController | @@ -69,6 +69,9 @@ class BlogController extends BaseController | ||
| 69 | } | 69 | } |
| 70 | }); | 70 | }); |
| 71 | } | 71 | } |
| 72 | + if(isset($this->map['operator_id'])){ | ||
| 73 | + $query = $query->where('operator_id',$this->map['operator_id']); | ||
| 74 | + } | ||
| 72 | if(isset($this->map['status'])){ | 75 | if(isset($this->map['status'])){ |
| 73 | $query = $query->where('status',$this->map['status']); | 76 | $query = $query->where('status',$this->map['status']); |
| 74 | } | 77 | } |
| @@ -291,6 +291,7 @@ class CustomModuleContentController extends BaseController | @@ -291,6 +291,7 @@ class CustomModuleContentController extends BaseController | ||
| 291 | $param = [ | 291 | $param = [ |
| 292 | 'type'=>$setNumModel::TYPE_CUSTOM_SORT, | 292 | 'type'=>$setNumModel::TYPE_CUSTOM_SORT, |
| 293 | 'num'=>$this->param['module_id'], | 293 | 'num'=>$this->param['module_id'], |
| 294 | + 'module_id'=>$this->param['id'], | ||
| 294 | 'project_id'=>$this->user['project_id'], | 295 | 'project_id'=>$this->user['project_id'], |
| 295 | 'data'=>json_encode($this->param['data']), | 296 | 'data'=>json_encode($this->param['data']), |
| 296 | ]; | 297 | ]; |
| @@ -73,6 +73,9 @@ class NewsController extends BaseController | @@ -73,6 +73,9 @@ class NewsController extends BaseController | ||
| 73 | } | 73 | } |
| 74 | }); | 74 | }); |
| 75 | } | 75 | } |
| 76 | + if(isset($this->map['operator_id'])){ | ||
| 77 | + $query = $query->where('operator_id',$this->map['operator_id']); | ||
| 78 | + } | ||
| 76 | if(isset($this->map['status'])){ | 79 | if(isset($this->map['status'])){ |
| 77 | $query = $query->where('status',$this->map['status']); | 80 | $query = $query->where('status',$this->map['status']); |
| 78 | } | 81 | } |
| @@ -170,11 +170,11 @@ class BlogLogic extends BaseLogic | @@ -170,11 +170,11 @@ class BlogLogic extends BaseLogic | ||
| 170 | * @time :2023/6/13 11:30 | 170 | * @time :2023/6/13 11:30 |
| 171 | */ | 171 | */ |
| 172 | public function paramProcessing($param){ | 172 | public function paramProcessing($param){ |
| 173 | + $param['operator_id'] = $this->user['id']; | ||
| 173 | if(isset($this->param['id'])){ | 174 | if(isset($this->param['id'])){ |
| 174 | $param['operator_id'] = $this->user['id']; | 175 | $param['operator_id'] = $this->user['id']; |
| 175 | }else{ | 176 | }else{ |
| 176 | $param['create_id'] = $this->user['id']; | 177 | $param['create_id'] = $this->user['id']; |
| 177 | - $param['operator_id'] = $this->user['id']; | ||
| 178 | $param['project_id'] = $this->user['project_id']; | 178 | $param['project_id'] = $this->user['project_id']; |
| 179 | } | 179 | } |
| 180 | if(isset($param['category_id']) && !empty($param['category_id'])){ | 180 | if(isset($param['category_id']) && !empty($param['category_id'])){ |
| @@ -183,6 +183,7 @@ class NewsLogic extends BaseLogic | @@ -183,6 +183,7 @@ class NewsLogic extends BaseLogic | ||
| 183 | */ | 183 | */ |
| 184 | public function paramProcessing($param) | 184 | public function paramProcessing($param) |
| 185 | { | 185 | { |
| 186 | + $param['operator_id'] = $this->user['id']; | ||
| 186 | if(isset($param['image'])){ | 187 | if(isset($param['image'])){ |
| 187 | $param['image'] = str_replace_url($param['image'] ?? ''); | 188 | $param['image'] = str_replace_url($param['image'] ?? ''); |
| 188 | } | 189 | } |
| @@ -193,7 +194,6 @@ class NewsLogic extends BaseLogic | @@ -193,7 +194,6 @@ class NewsLogic extends BaseLogic | ||
| 193 | $param['operator_id'] = $this->user['id']; | 194 | $param['operator_id'] = $this->user['id']; |
| 194 | }else{ | 195 | }else{ |
| 195 | $param['create_id'] = $this->user['id']; | 196 | $param['create_id'] = $this->user['id']; |
| 196 | - $param['operator_id'] = $this->user['id']; | ||
| 197 | $param['project_id'] = $this->user['project_id']; | 197 | $param['project_id'] = $this->user['project_id']; |
| 198 | } | 198 | } |
| 199 | if(isset($param['category_id']) && !empty($param['category_id'])){ | 199 | if(isset($param['category_id']) && !empty($param['category_id'])){ |
-
请 注册 或 登录 后发表评论