|
|
@@ -207,6 +207,19 @@ class DeliveryController extends BaseController
|
|
|
|
|
|
$orderId = intval($post['orderId']);
|
|
|
$order = OrderClass::getById($orderId);
|
|
|
+ if (empty($order)) {
|
|
|
+ util::fail('没有找到订单');
|
|
|
+ }
|
|
|
+ if ($order['mainId'] != $this->mainId) {
|
|
|
+ util::fail('不是你的订单');
|
|
|
+ }
|
|
|
+ if (empty($order['address'])) {
|
|
|
+ util::fail('客户地址缺失');
|
|
|
+ }
|
|
|
+ if (empty($order['long']) || empty($order['lat'])) {
|
|
|
+ util::fail('客户地址信息缺失');
|
|
|
+ }
|
|
|
+
|
|
|
$shop = ShopClass::getById($this->shopId);
|
|
|
$order['weight'] = $weight;
|
|
|
$order['remark'] = $remark;
|