作者 lyh

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

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