作者 耿培杰

添加确认收货接口

... ... @@ -1323,6 +1323,7 @@ class Order extends Api
public function receiving(){
$model = new OrderDetail();
$order_detail_id = $this->request->param('order_detail_id');
if (!$order_detail_id) $this->error('缺少参数 order_detail_id');
$orderInfo = $model->where(['id'=>$order_detail_id])->find();
if ($orderInfo['status'] != 3) $this->error('此订单状态不可确认收货');
$res = $model->where(['id'=>$order_detail_id])->update(['status'=>4]);
... ...