Commit bebc797d authored by zw's avatar zw

订单搜索

parent a19d4c9b
...@@ -95,6 +95,7 @@ class Basic extends Controller ...@@ -95,6 +95,7 @@ class Basic extends Controller
if (!in_array(trim($requestPath), $this->filterVerify)) { if (!in_array(trim($requestPath), $this->filterVerify)) {
$this->tokenVerify(); $this->tokenVerify();
} }
unset($this->params["AuthToken"]);
/*临时验证 end*/ /*临时验证 end*/
......
...@@ -33,9 +33,9 @@ class OMarchInModel extends Model ...@@ -33,9 +33,9 @@ class OMarchInModel extends Model
$params["update_time"] = date("Y-m-d H:i:s", time()); $params["update_time"] = date("Y-m-d H:i:s", time());
Db::startTrans(); Db::startTrans();
try { try {
$this->db_model->insert($params); $id = $this->db_model->insertGetId($params);
Db::commit(); Db::commit();
return 1; return $id;
} catch (\Exception $e) { } catch (\Exception $e) {
Db::rollback(); Db::rollback();
return 0; return 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