|
@@ -320,10 +320,10 @@ class Rider extends Api |
|
@@ -320,10 +320,10 @@ class Rider extends Api |
320
|
->find();
|
320
|
->find();
|
321
|
if ($order['rider_status'] == 20) $this->error('该订单已送达');
|
321
|
if ($order['rider_status'] == 20) $this->error('该订单已送达');
|
322
|
$order->rider_status = '20';
|
322
|
$order->rider_status = '20';
|
323
|
- $order->isUpdate()->save();
|
323
|
+ $order->save();
|
324
|
$rider_order->status = '2';
|
324
|
$rider_order->status = '2';
|
325
|
$rider_order->sendtime = time();
|
325
|
$rider_order->sendtime = time();
|
326
|
- $rider_order->isUpdate()->save();
|
326
|
+ $rider_order->save();
|
327
|
$user = $this->auth->getUser();
|
327
|
$user = $this->auth->getUser();
|
328
|
$data = [
|
328
|
$data = [
|
329
|
'user_id' => $this->auth->id,
|
329
|
'user_id' => $this->auth->id,
|