mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Order.php
This commit is contained in:
parent
d87d24f0a4
commit
ce51012362
@ -239,7 +239,7 @@ class Order extends Auth
|
|||||||
$map1 = ['uid' => $this->uuid, 'order_no' => $data['order_no']];
|
$map1 = ['uid' => $this->uuid, 'order_no' => $data['order_no']];
|
||||||
$order = $this->app->db->name('ShopOrder')->where($map1)->whereIn('status', [1, 2])->find();
|
$order = $this->app->db->name('ShopOrder')->where($map1)->whereIn('status', [1, 2])->find();
|
||||||
if (empty($order)) $this->error('不能修改地址');
|
if (empty($order)) $this->error('不能修改地址');
|
||||||
if (empty($order['truck_type'])) $this->success('无需快递配送', ['order_no' => $order['order_no']);
|
if (empty($order['truck_type'])) $this->success('无需快递配送', ['order_no' => $order['order_no']]);
|
||||||
// 根据地址计算运费
|
// 根据地址计算运费
|
||||||
$map2 = ['status' => 1, 'deleted' => 0, 'order_no' => $data['order_no']];
|
$map2 = ['status' => 1, 'deleted' => 0, 'order_no' => $data['order_no']];
|
||||||
$tCount = $this->app->db->name('ShopOrderItem')->where($map1)->sum('truck_number');
|
$tCount = $this->app->db->name('ShopOrderItem')->where($map1)->sum('truck_number');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user