Commit bf8f4cbf authored by 吴贤德's avatar 吴贤德

媒资注入,如果之前已经注入过或注入失败,将注入状态改为未注入以满足重新注入需求

parent 68e22c07
......@@ -115,8 +115,15 @@ class InjectAction extends CommonAction{
$logData = array();
$mapData = array();
$isExists = M("Map_$sp_id","sh_hotel_media_")->field("id")->where("media_id = $v and hotel_id= $hotel_id")->find();
if($isExists){
// $isExists = M("Map_$sp_id","sh_hotel_media_")->field("id")->where("media_id = $v and hotel_id= $hotel_id")->find();
// 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;
}
$logData['task_id'] = $task_id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment