|
...
|
...
|
@@ -70,7 +70,7 @@ class BProjectIsComLogic extends BaseLogic |
|
|
|
$is_list = [self::IS_LIST,self::IS_DETAIL];
|
|
|
|
foreach ($is_list as $isValue){
|
|
|
|
//查询当前数据是否已保存
|
|
|
|
$info = $this->read(['source'=>$pValue,'is_list'=>$isValue,'is_custom'=>BTemplate::IS_NO_CUSTOM],['name','source','is_list','is_custom','header_status','footer_status']);
|
|
|
|
$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']);
|
|
|
|
if($info !== false){
|
|
|
|
$data[] = $info;
|
|
|
|
}else{
|
|
...
|
...
|
@@ -98,7 +98,7 @@ class BProjectIsComLogic extends BaseLogic |
|
|
|
public function initPageParamData(&$data){
|
|
|
|
$initPageParam = $this->model->initPageParam;
|
|
|
|
foreach($initPageParam as $key => $value){
|
|
|
|
$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']);
|
|
|
|
$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']);
|
|
|
|
if($info !== false){
|
|
|
|
$data[] = $info;
|
|
|
|
}else{
|
...
|
...
|
|