作者 何书鹏

确认收货完善

... ... @@ -314,10 +314,12 @@ class Rider extends Api
{
$id = $this->request->post('id');
$rider_order = RiderOrder::get($id);
empty($rider_order) && $this->error('骑手订单不存在');
$ordermodel = new \app\api\model\Order();
$order = $ordermodel
->where('id',$rider_order['order_id'])
->find();
empty($order) && $this->error('订单不存在');
if ($order['rider_status'] == 20) $this->error('该订单已送达');
$order->rider_status = '20';
$order->save();
... ...