作者 lyh

gx

@@ -46,7 +46,7 @@ class BTemplateModuleProjectLogic extends BaseLogic @@ -46,7 +46,7 @@ class BTemplateModuleProjectLogic extends BaseLogic
46 public function moduleProjectSave(){ 46 public function moduleProjectSave(){
47 try { 47 try {
48 $this->param['operator_id'] = $this->user['id']; 48 $this->param['operator_id'] = $this->user['id'];
49 - $this->param['project_id'] = $this->user['project_id']; 49 + $this->param['project_id'] = isset($this->param['project_id']) ? $this->param['project_id'] : $this->user['project_id'];
50 $this->model->add($this->param); 50 $this->model->add($this->param);
51 }catch (\Exception $e){ 51 }catch (\Exception $e){
52 $this->fail('系统错误,请联系管理员'); 52 $this->fail('系统错误,请联系管理员');