|
@@ -897,7 +897,7 @@ class Sell
|
|
}
|
|
}
|
|
|
|
|
|
# 添加配送信息
|
|
# 添加配送信息
|
|
- public function updatePs($order, $status = 1)
|
|
|
|
|
|
+ public function updatePs($order, $status = 1, $order_num = false)
|
|
{
|
|
{
|
|
$where['order_id'] = $order['id'];
|
|
$where['order_id'] = $order['id'];
|
|
$data = Dever::db('shop/sell_order_ps')->find($where);
|
|
$data = Dever::db('shop/sell_order_ps')->find($where);
|
|
@@ -911,6 +911,9 @@ class Sell
|
|
if ($status == 2) {
|
|
if ($status == 2) {
|
|
$insert['qu_date'] = time();
|
|
$insert['qu_date'] = time();
|
|
}
|
|
}
|
|
|
|
+ if ($order_num) {
|
|
|
|
+ $insert['order_num'] = $order_num;
|
|
|
|
+ }
|
|
|
|
|
|
Dever::db('shop/sell_order_ps')->insert($insert);
|
|
Dever::db('shop/sell_order_ps')->insert($insert);
|
|
} else {
|
|
} else {
|
|
@@ -923,6 +926,9 @@ class Sell
|
|
if ($status == 3) {
|
|
if ($status == 3) {
|
|
$update['qs_date'] = time();
|
|
$update['qs_date'] = time();
|
|
}
|
|
}
|
|
|
|
+ if ($order_num) {
|
|
|
|
+ $update['order_num'] = $order_num;
|
|
|
|
+ }
|
|
Dever::db('shop/sell_order_ps')->update($update);
|
|
Dever::db('shop/sell_order_ps')->update($update);
|
|
}
|
|
}
|
|
}
|
|
}
|