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
bf8f4cbf
Commit
bf8f4cbf
authored
Aug 06, 2019
by
吴贤德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
媒资注入,如果之前已经注入过或注入失败,将注入状态改为未注入以满足重新注入需求
parent
68e22c07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
InjectAction.class.php
SooonerHotel/App/Lib/Action/Inject/InjectAction.class.php
+9
-2
No files found.
SooonerHotel/App/Lib/Action/Inject/InjectAction.class.php
View file @
bf8f4cbf
...
@@ -115,8 +115,15 @@ class InjectAction extends CommonAction{
...
@@ -115,8 +115,15 @@ class InjectAction extends CommonAction{
$logData
=
array
();
$logData
=
array
();
$mapData
=
array
();
$mapData
=
array
();
$isExists
=
M
(
"Map_
$sp_id
"
,
"sh_hotel_media_"
)
->
field
(
"id"
)
->
where
(
"media_id =
$v
and hotel_id=
$hotel_id
"
)
->
find
();
// $isExists = M("Map_$sp_id","sh_hotel_media_")->field("id")->where("media_id = $v and hotel_id= $hotel_id")->find();
if
(
$isExists
){
// if($isExists){
// continue;
// }
//支持重新注入(注入失败需要重新注入)
$sqlUpdate
=
"update sh_hotel_media_map_
$sp_id
set status_inject=0 where media_id=
$v
and hotel_id=
$hotel_id
"
;
$uok
=
M
(
""
)
->
execute
(
$sqlUpdate
);
if
(
$uok
){
continue
;
continue
;
}
}
$logData
[
'task_id'
]
=
$task_id
;
$logData
[
'task_id'
]
=
$task_id
;
...
...
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