Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
lxx_pms
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
游宗学
lxx_pms
Commits
7cdab3fa
提交
7cdab3fa
authored
6月 03, 2020
作者:
游宗学
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
法大大修改!
上级
82ee58ae
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
+4
-1
TemplateController.class.php
PHP/Application/Fdd/Controller/TemplateController.class.php
+4
-1
没有找到文件。
PHP/Application/Fdd/Controller/TemplateController.class.php
浏览文件 @
7cdab3fa
...
@@ -69,12 +69,15 @@ class TemplateController extends BaseFddController
...
@@ -69,12 +69,15 @@ class TemplateController extends BaseFddController
break
;
break
;
}
}
$apartment_info
=
$this
->
helper
(
'Contract'
)
->
getApartmentByContract
(
$query_data
[
'contract_id'
],
'apartment_id, company_id'
)[
'data'
];
$apartment_info
=
$this
->
helper
(
'Contract'
)
->
getApartmentByContract
(
$query_data
[
'contract_id'
],
'apartment_id, company_id'
)[
'data'
];
if
(
$data
[
'room_id'
]){
$room_info
=
$this
->
helper
(
"Room"
)
->
getOne
([
'room_id'
=>
$data
[
'room_id'
]])[
'data'
];
}
// 根据场景获取门店模板, 不要上面的模板
// 根据场景获取门店模板, 不要上面的模板
$apartment_template
=
$this
->
checkTemplate
(
$apartment_info
[
'apartment_id'
],
$query_data
[
'service_code'
])[
'data'
];
$apartment_template
=
$this
->
checkTemplate
(
$apartment_info
[
'apartment_id'
],
$query_data
[
'service_code'
])[
'data'
];
$scene_data
=
$this
->
helper
(
'Fdd\Create'
)
->
getSceneById
(
$data
)[
'data'
];
$scene_data
=
$this
->
helper
(
'Fdd\Create'
)
->
getSceneById
(
$data
)[
'data'
];
//$template = $scene_data['version_id'] ? $scene_data['version_id'] : $template;
//$template = $scene_data['version_id'] ? $scene_data['version_id'] : $template;
$template
=
$apartment_template
[
'version_id'
]
?
$apartment_template
[
'version_id'
]
:
$template
;
$template
=
$apartment_template
[
'version_id'
]
?
$apartment_template
[
'version_id'
]
:
$template
;
$query_data
[
'apartment_id'
]
=
$apartment_info
[
'apartment_id'
];
$query_data
[
'apartment_id'
]
=
$apartment_info
[
'apartment_id'
]
?
$apartment_info
[
'apartment_id'
]
:
$room_info
[
'apartment_id'
]
;
$query_data
[
'template'
]
=
$template
;
$query_data
[
'template'
]
=
$template
;
$query_data
=
http_build_query
(
$query_data
);
$query_data
=
http_build_query
(
$query_data
);
$http
=
'https'
;
$http
=
'https'
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论