|
|
@@ -233,9 +233,11 @@ class OrderClass extends BaseClass
|
|
|
$baseRow = 2;
|
|
|
$x = 0;
|
|
|
foreach ($orderList as $key => $orderData) {
|
|
|
- if (!empty($orderData['itemList'])) {
|
|
|
- $orderData['itemList'] = array_merge(['id' => -1], $orderData['itemList']);
|
|
|
- foreach ($orderData['itemList'] as $k => $orderInfo) {
|
|
|
+ $currentList = $orderData['itemList'] ?? [];
|
|
|
+ if (!empty($currentList)) {
|
|
|
+ $currentList = array_merge(['id' => -1], $currentList);
|
|
|
+ print_r($currentList);die;
|
|
|
+ foreach ($currentList as $k => $orderInfo) {
|
|
|
$i = $baseRow + $x;
|
|
|
$x++;
|
|
|
if ($orderInfo['id'] == -1) {
|