...
|
...
|
@@ -669,13 +669,13 @@ class MemberCenterController extends RestBaseController |
|
|
*
|
|
|
**/
|
|
|
public function TraceQuery(){
|
|
|
$user_id = $this->getUserId();
|
|
|
// $user_id = $this->getUserId();
|
|
|
$param = $this->request->param();
|
|
|
if(empty($param['id'])){
|
|
|
$this->error(['code' => 40003 , 'msg' => '缺少参数id']);
|
|
|
}
|
|
|
$orderModel = new OrderModel();
|
|
|
$order = $orderModel->findData(array('o.id'=>$param['id'],'o.user_id'=>$user_id));
|
|
|
$order = $orderModel->findData(array('o.id'=>$param['id']));
|
|
|
if(empty($order)){
|
|
|
$this->error('未查询到该订单!');
|
|
|
}
|
...
|
...
|
@@ -712,13 +712,13 @@ class MemberCenterController extends RestBaseController |
|
|
*
|
|
|
**/
|
|
|
public function query_order2(){
|
|
|
$user_id = $this->getUserId();
|
|
|
// $user_id = $this->getUserId();
|
|
|
$param = $this->request->param();
|
|
|
if(empty($param['id'])){
|
|
|
$this->error(['code' => 40003 , 'msg' => '缺少参数id']);
|
|
|
}
|
|
|
$orderModel = new OrderModel();
|
|
|
$order = $orderModel->findData(array('o.id'=>$param['id'],'o.user_id'=>$user_id));
|
|
|
$order = $orderModel->findData(array('o.id'=>$param['id']));
|
|
|
if(empty($order)){
|
|
|
$this->error('未查询到该订单!');
|
|
|
}
|
...
|
...
|
@@ -737,7 +737,7 @@ class MemberCenterController extends RestBaseController |
|
|
$orderModel->updateData(array('id'=>$param['id']),array('status'=>-1,'mail_no'=>$result['responseParam']['mailNo']));
|
|
|
}
|
|
|
|
|
|
$order = $orderModel->findData(array('o.id'=>$param['id'],'o.user_id'=>$user_id));
|
|
|
$order = $orderModel->findData(array('o.id'=>$param['id']));
|
|
|
$this->success('查询成功!',$result['responseParam']);
|
|
|
}else{
|
|
|
$this->success('查询失败!',$result);
|
...
|
...
|
|