正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -70,7 +70,7 @@ class BProjectIsComLogic extends BaseLogic | @@ -70,7 +70,7 @@ class BProjectIsComLogic extends BaseLogic | ||
| 70 | $is_list = [self::IS_LIST,self::IS_DETAIL]; | 70 | $is_list = [self::IS_LIST,self::IS_DETAIL]; |
| 71 | foreach ($is_list as $isValue){ | 71 | foreach ($is_list as $isValue){ |
| 72 | //查询当前数据是否已保存 | 72 | //查询当前数据是否已保存 |
| 73 | - $info = $this->read(['source'=>$pValue,'is_list'=>$isValue,'is_custom'=>BTemplate::IS_NO_CUSTOM],['name','source','is_list','is_custom','header_status','footer_status']); | 73 | + $info = $this->model->read(['source'=>$pValue,'is_list'=>$isValue,'is_custom'=>BTemplate::IS_NO_CUSTOM],['name','source','is_list','is_custom','header_status','footer_status']); |
| 74 | if($info !== false){ | 74 | if($info !== false){ |
| 75 | $data[] = $info; | 75 | $data[] = $info; |
| 76 | }else{ | 76 | }else{ |
| @@ -98,7 +98,7 @@ class BProjectIsComLogic extends BaseLogic | @@ -98,7 +98,7 @@ class BProjectIsComLogic extends BaseLogic | ||
| 98 | public function initPageParamData(&$data){ | 98 | public function initPageParamData(&$data){ |
| 99 | $initPageParam = $this->model->initPageParam; | 99 | $initPageParam = $this->model->initPageParam; |
| 100 | foreach($initPageParam as $key => $value){ | 100 | foreach($initPageParam as $key => $value){ |
| 101 | - $info = $this->read(['source'=>$value,'is_list'=>self::IS_DETAIL,'is_custom'=>BTemplate::IS_NO_CUSTOM],['name','source','is_list','is_custom','header_status','footer_status']); | 101 | + $info = $this->model->read(['source'=>$value,'is_list'=>self::IS_DETAIL,'is_custom'=>BTemplate::IS_NO_CUSTOM],['name','source','is_list','is_custom','header_status','footer_status']); |
| 102 | if($info !== false){ | 102 | if($info !== false){ |
| 103 | $data[] = $info; | 103 | $data[] = $info; |
| 104 | }else{ | 104 | }else{ |
-
请 注册 或 登录 后发表评论