作者 lyh

Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6

@@ -37,7 +37,7 @@ class BTemplateLogLogic extends BaseLogic @@ -37,7 +37,7 @@ class BTemplateLogLogic extends BaseLogic
37 } 37 }
38 $bTemplateModel = new BTemplate(); 38 $bTemplateModel = new BTemplate();
39 //演示项目,不允许其他号码编辑 39 //演示项目,不允许其他号码编辑
40 - if(($this->user['project_id'] == 1) && (in_array($this->user['mobile'],$bTemplateModel->mobile)) && ($info['source'] == 1)){ 40 + if(($this->user['project_id'] == 1) && (!in_array($this->user['mobile'],$bTemplateModel->mobile)) && ($info['source'] == 1)){
41 $this->fail('演示项目仅支持演示功能,无法更改首页'); 41 $this->fail('演示项目仅支持演示功能,无法更改首页');
42 } 42 }
43 $data = $this->setParam($info); 43 $data = $this->setParam($info);
@@ -175,7 +175,7 @@ class BTemplateLogic extends BaseLogic @@ -175,7 +175,7 @@ class BTemplateLogic extends BaseLogic
175 */ 175 */
176 public function templateSave(){ 176 public function templateSave(){
177 //演示项目,不允许其他号码编辑 177 //演示项目,不允许其他号码编辑
178 - if(($this->user['project_id'] == 1) && (in_array($this->user['mobile'],$this->model->mobile)) && ($this->param['source'] == 1)){ 178 + if(($this->user['project_id'] == 1) && (!in_array($this->user['mobile'],$this->model->mobile)) && ($this->param['source'] == 1)){
179 $this->fail('演示项目仅支持演示功能,无法更改首页'); 179 $this->fail('演示项目仅支持演示功能,无法更改首页');
180 } 180 }
181 //查询当前模版是否已保存 181 //查询当前模版是否已保存