Commit 9ecdaafa authored by hujun's avatar hujun

转为报备看铺时间转为时间戳

parent 9131321d
......@@ -86,8 +86,8 @@ class ReportService
array_push($order_arr, $this->orderBin($order_no, $id, $v));
$push->pushReportMessage($v); //推送报备信息
}
//todo 保存order表
return $this->orderModel->insertOrderByAll($order_arr);
//todo 保存order表 订单返回成功返回报备id
return ($this->orderModel->insertOrderByAll($order_arr) > 0) ? $id:0;
}
}
......@@ -188,7 +188,7 @@ class ReportService
* @param $user_name
* @param $vehicle
* @param $intro
* @param $predict_see_time
* @param $predict_see_time int 时间戳
* @return int|string
*/
public function reportBin($report_agent_id,$agent_phone , $report_agent_name, $report_store_id, $user_id, $user_phone, $user_name,
......
......@@ -107,17 +107,19 @@ class WatchShop extends Basic
$agent_id = $this->params["agents_id"];
$agent_phone = $agent_data["phone"];
$store_id = $agent_data["store_id"];
$house_id = $appoint_data["house_id"];
$user_id = $appoint_data["user_id"];
$vehicle = 10;
$intro = $appoint_data["other_require"];
$predict_see_time = $appoint_data["expect_time"];
$predict_see_time = strtotime($appoint_data["expect_time"]);
$service_ = new ReportService();
//todo 验证用户id是否正常
$userArr = $service_->verifyUser($user_id);
$is_ok = $service_->reportBin($agent_id, $agent_phone, $agent_data['name'], $store_id, $user_id, $userArr["user_phone"],
$userArr["user_name"], $vehicle, $intro, $predict_see_time);
$is_ok = $service_->verifyReport($agent_id, $agent_phone, $agent_data['name'], $store_id, $user_id,
$userArr["user_phone"], $userArr["user_name"], $house_id,$vehicle, $intro, $predict_see_time);
if ($is_ok > 0) {
......
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