作者 何书鹏

bug修改

... ... @@ -84,6 +84,7 @@ class Litestoreorder extends Backend
{
$id = input('post.ids');
$row = $this->model->get($id);
$row['pay_status'] == '10' && $this->error('订单未支付,禁止分配骑手');
$row['freight_status'] = "20";
$row['freight_time'] = time();
$row['rider_user_id'] = input('post.virtual_name');
... ...
... ... @@ -320,10 +320,10 @@ class Rider extends Api
->find();
if ($order['rider_status'] == 20) $this->error('该订单已送达');
$order->rider_status = '20';
$order->isUpdate()->save();
$order->save();
$rider_order->status = '2';
$rider_order->sendtime = time();
$rider_order->isUpdate()->save();
$rider_order->save();
$user = $this->auth->getUser();
$data = [
'user_id' => $this->auth->id,
... ...