Commit 60c9aeb6 authored by clone's avatar clone Committed by hujun

bug

parent 585d8a5b
......@@ -22,8 +22,9 @@ class OrderLog extends Basic
private $o_refund_model;
private $service_;
function __construct()
function __construct($request = null)
{
parent::__construct($request);
$this->o_march_in_model = new OMarchInModel();
$this->o_refund_model = new ORefundModel();
$this->service_ = new OrderLogService();
......@@ -37,10 +38,13 @@ class OrderLog extends Basic
public function marchIn()
{
$params = $this->params;
if (!isset($params["march_in_area"]) || !isset($params["reception_id"]) || !isset($params["report_id"])
if (!isset($params["march_in_area"]) || !isset($params["report_id"]) || !isset($params["reception_id"])
|| !isset($params["order_id"]) || !isset($params["order_no"])) {
return $this->response("101", "请求参数错误");
}
/* $params = array(
"reception_id" => 1,//带看经纪人id
"report_id" => 1,//报备id
......@@ -50,7 +54,7 @@ class OrderLog extends Basic
"march_in_img" =>"123123", //备注图片
"march_in_area" =>"上海市虹口区中山公园", //进场地址
);*/
$params["reception_id"] = $this->agentName;
// $params["reception_id"] = $this->agentName;
$is_ok = $this->o_march_in_model->addMarchIn($params);
if ($is_ok > 0) {
return $this->response("200", "request success", []);
......
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