Commit 6d648da0 authored by 吴贤德's avatar 吴贤德

中心接口:修复推送日志log错误

parent cf2d51f9
......@@ -401,6 +401,8 @@ class CenterAction extends Action
}
$sqlTotal = "SELECT count(1) total FROM sh_hotel_media_map_$spid WHERE status_inject=1 AND updatetime BETWEEN '$start' AND '$end';";
// echo $sqlTotal;
$totalArr = M("")->query($sqlTotal);
$total = 0;
if (count($totalArr)>0){
......@@ -507,7 +509,7 @@ class CenterAction extends Action
$log["req_json"]=$rawData;
$log["resp_json"]=$data;
$log["code"]=$result["code"];
D("PushLog")->add($log);
D("LogPush")->add($log);
}
echo json_encode($result);
exit;
......
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