|
@@ -1560,6 +1560,7 @@ class Buy
|
|
|
|
|
|
$data['2_' . $v['id']][] = array
|
|
|
(
|
|
|
+ 'area' => $shop['area'],
|
|
|
'order_id' => $order['id'],
|
|
|
'order_type' => $order['type'],
|
|
|
'order_num' => $order['order_num'],
|
|
@@ -1616,6 +1617,7 @@ class Buy
|
|
|
if ($sku) {
|
|
|
$data['3_' . $v['id']][] = array
|
|
|
(
|
|
|
+ 'area' => $shop['area'],
|
|
|
'order_id' => $order['id'],
|
|
|
'order_type' => $order['type'],
|
|
|
'order_num' => $order['order_num'],
|
|
@@ -1809,6 +1811,9 @@ class Buy
|
|
|
|
|
|
if (!$info) {
|
|
|
$insert = $where;
|
|
|
+ if (isset($data['area'])) {
|
|
|
+ $insert['area'] = $data['area'] . ',' . $where['type_id'];
|
|
|
+ }
|
|
|
$insert['name'] = $data['order_id'];
|
|
|
$insert['order_num'] = $data['order_num'];
|
|
|
$insert['operdate'] = time();
|