自动派单
This commit is contained in:
parent
bb8578c8bf
commit
117b1ae293
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace app\admin\controller\orders;
|
||||
|
||||
use app\admin\model\Item;
|
||||
use app\admin\model\Order;
|
||||
use app\admin\model\OrderDispatch;
|
||||
use app\admin\model\OrderReview;
|
||||
|
|
@ -38,7 +39,7 @@ ORDER BY distance;",[$order->lng,$order->lat]);
|
|||
|
||||
$worker_ids = array_column($worker_info,'id');
|
||||
|
||||
$items = model('item')->getAll();
|
||||
$items = Item::all();
|
||||
$ids = $this->getParentIdsFromArray($order->item_id,$items);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user