|
|
@@ -280,10 +280,10 @@ class Order extends Api
|
|
|
public function getTracking(UserArea $userArea)
|
|
|
{
|
|
|
$order_id = $this->request->post('order_id'); // 订单id
|
|
|
- if(empty($order_id)) throw new Exception(__("参数有误,无可用产品"));
|
|
|
+ if(empty($order_id)) $this->error(__("参数有误,无可用产品"));
|
|
|
|
|
|
$tracking_no = $userArea->where('order_id', $order_id)->value('tracking_no');
|
|
|
- if(empty($tracking_no)) throw new Exception(__("暂无物流信息"));
|
|
|
+ if(empty($tracking_no)) $this->error(__("暂无物流信息"));
|
|
|
|
|
|
$this->success('ok', $tracking_no);
|
|
|
}
|