正在显示
3 个修改的文件
包含
20 行增加
和
2 行删除
| @@ -31,7 +31,6 @@ class ProjectKeywordController extends BaseController | @@ -31,7 +31,6 @@ class ProjectKeywordController extends BaseController | ||
| 31 | $data['search_keywords'] = $info['search_keywords']; | 31 | $data['search_keywords'] = $info['search_keywords']; |
| 32 | $data['customer_keywords'] = $info['customer_keywords']; | 32 | $data['customer_keywords'] = $info['customer_keywords']; |
| 33 | $data['brand_keyword'] = $info['brand_keyword']; | 33 | $data['brand_keyword'] = $info['brand_keyword']; |
| 34 | - $data['minor_keywords'] = $info['minor_keywords']; | ||
| 35 | $this->response('success',Code::SUCCESS,$data); | 34 | $this->response('success',Code::SUCCESS,$data); |
| 36 | } | 35 | } |
| 37 | 36 |
| @@ -165,10 +165,12 @@ class HrLogic extends BaseLogic | @@ -165,10 +165,12 @@ class HrLogic extends BaseLogic | ||
| 165 | if(($this->manager['gid'] != ManageHr::GID_ZERO) && isset($this->param['id'])){ | 165 | if(($this->manager['gid'] != ManageHr::GID_ZERO) && isset($this->param['id'])){ |
| 166 | $groupModel = new Group(); | 166 | $groupModel = new Group(); |
| 167 | $groupInfo = $groupModel->read(['id'=>$this->manager['gid']]); | 167 | $groupInfo = $groupModel->read(['id'=>$this->manager['gid']]); |
| 168 | - if (!in_array(20,$groupInfo['rights']) && ($data['manage_id'] != $this->manager['id'])) { | 168 | + if ((!in_array(20,$groupInfo['rights'])) && ($data['manage_id'] != $this->manager['id'])) { |
| 169 | + if(strpos($this->manager['rules'],'20') == false){ | ||
| 169 | $this->fail('无权限查看其他用户信息'); | 170 | $this->fail('无权限查看其他用户信息'); |
| 170 | } | 171 | } |
| 171 | } | 172 | } |
| 173 | + } | ||
| 172 | foreach ($this->model::specieField() as $v){ | 174 | foreach ($this->model::specieField() as $v){ |
| 173 | $data[$v] = json_decode($data[$v],true); | 175 | $data[$v] = json_decode($data[$v],true); |
| 174 | } | 176 | } |
| @@ -19,6 +19,7 @@ use App\Models\Channel\Zone; | @@ -19,6 +19,7 @@ use App\Models\Channel\Zone; | ||
| 19 | use App\Models\Com\NoticeLog; | 19 | use App\Models\Com\NoticeLog; |
| 20 | use App\Models\Com\UpdateLog; | 20 | use App\Models\Com\UpdateLog; |
| 21 | use App\Models\Devops\ServerConfig; | 21 | use App\Models\Devops\ServerConfig; |
| 22 | +use App\Models\Devops\ServersIp; | ||
| 22 | use App\Models\Domain\DomainInfo; | 23 | use App\Models\Domain\DomainInfo; |
| 23 | use App\Models\Inquiry\InquiryIP; | 24 | use App\Models\Inquiry\InquiryIP; |
| 24 | use App\Models\Inquiry\InquirySet; | 25 | use App\Models\Inquiry\InquirySet; |
| @@ -179,6 +180,22 @@ class ProjectLogic extends BaseLogic | @@ -179,6 +180,22 @@ class ProjectLogic extends BaseLogic | ||
| 179 | } | 180 | } |
| 180 | 181 | ||
| 181 | /** | 182 | /** |
| 183 | + * @remark :选择服务器后双向绑定 | ||
| 184 | + * @name :setServers | ||
| 185 | + * @author :lyh | ||
| 186 | + * @method :post | ||
| 187 | + * @time :2024/6/25 15:34 | ||
| 188 | + */ | ||
| 189 | + public function setServers($servers_id,$project_id){ | ||
| 190 | + $serversIpModel = new ServersIp(); | ||
| 191 | + $info = $serversIpModel->read(['id'=>$servers_id]); | ||
| 192 | + $project_arr = explode(',',$info['project_arr']); | ||
| 193 | + if(!in_array($project_id,$project_arr)){ | ||
| 194 | + array_push($project_id); | ||
| 195 | + } | ||
| 196 | + } | ||
| 197 | + | ||
| 198 | + /** | ||
| 182 | * @remark :危险项目同步图片与文件 | 199 | * @remark :危险项目同步图片与文件 |
| 183 | * @name :syncImageFile | 200 | * @name :syncImageFile |
| 184 | * @author :lyh | 201 | * @author :lyh |
-
请 注册 或 登录 后发表评论