【类 型】:feat 获取定点详情接口
【原 因】: 【过 程】: 【影 响】:
This commit is contained in:
parent
529665234a
commit
a5d38e8b04
@ -809,4 +809,24 @@ class AdminController extends PublicController
|
||||
$orderList = $orderDb->where($where)->field($field)->select();
|
||||
echo json_encode(array('status' => 1, 'msg' => '访问成功', 'orderList' => $orderList));
|
||||
}
|
||||
|
||||
/**
|
||||
* @description:获取订单详情
|
||||
*/
|
||||
public function getOrderShow()
|
||||
{
|
||||
if ($this->tokenShop_id != C('powerId')) {
|
||||
$where['shop_id'] = $this->tokenShop_id; //非总管理员 只返回自己的账户信息
|
||||
}
|
||||
|
||||
if ($_REQUEST['id']) {
|
||||
$where['id'] = $_REQUEST['id'];
|
||||
$orderDb = D('order');
|
||||
$field = array('id', 'order_sn', 'tel', 'total_price', 'refund_price', 'main_status', 'shipment_status', 'refund_status', 'order_time');
|
||||
$orderShow = $orderDb->where($where)->field($field)->find();
|
||||
echo json_encode(array('status' => 1, 'msg' => '访问成功', 'orderShow' => $orderShow));
|
||||
} else {
|
||||
echo json_encode(array('status' => 0, 'msg' => '参数有误'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user