Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SooonerHotel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴贤德
SooonerHotel
Commits
61cb436f
Commit
61cb436f
authored
Sep 09, 2019
by
吴贤德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台页面:新增酒店时判断合作方运营模式配置,若为自动运营方式,则创建酒店时将合作方关联的云端片库站点资源添加到对应媒资映射表
parent
ade095bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
HotelAction.class.php
SooonerHotel/App/Lib/Action/Hotel/HotelAction.class.php
+5
-1
No files found.
SooonerHotel/App/Lib/Action/Hotel/HotelAction.class.php
View file @
61cb436f
...
...
@@ -87,10 +87,14 @@ class HotelAction extends CommonAction{
$where
[
"type_code"
]
=
"wasu_incrementList_push_mode"
;
$push_mode
=
D
(
"Conf"
)
->
field
(
"v"
)
->
where
(
$where
)
->
find
();
if
(
$push_mode
[
"v"
]
==
1
)
{
$spinfo
=
D
(
"Sp"
)
->
field
(
"site_id"
)
->
where
(
array
(
"id"
=>
$spid
))
->
find
();
$siteid
=
$spinfo
[
"site_id"
];
if
(
$siteid
){
$sql
=
"INSERT INTO sh_hotel_media_map_
$spid
(media_id,hotel_id,status,status_inject)"
.
" SELECT id,
$id
,status,0 FROM sh_media_wasu WHERE sp_id=
$sp
id
;"
;
.
" SELECT id,
$id
,status,0 FROM sh_media_wasu WHERE site_id=
$site
id
;"
;
$model
->
execute
(
$sql
);
}
}
echo
'true'
;
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment