|
@@ -729,6 +729,10 @@ class Buy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (!$store) {
|
|
|
+ Dever::alert('未分配仓库');
|
|
|
+ }
|
|
|
+
|
|
|
array_multisort($distance, SORT_ASC, SORT_NUMERIC, $store);
|
|
|
|
|
|
$shop_factory = Dever::db('shop/factory')->select(array('shop_id' => $shop['id']));
|
|
@@ -744,6 +748,10 @@ class Buy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (!$factory) {
|
|
|
+ Dever::alert('未分配工厂');
|
|
|
+ }
|
|
|
+
|
|
|
array_multisort($distance, SORT_ASC, SORT_NUMERIC, $factory);
|
|
|
|
|
|
$this->order_num = 0;
|