mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-01 07:20:56 +00:00
Merge branch 'v4.7.0dev' into v5.0.0dev
This commit is contained in:
commit
d906134361
@ -120,7 +120,7 @@ class StoreServiceLogServices extends BaseServices
|
||||
foreach ($list as &$item) {
|
||||
$item['_add_time'] = $item['add_time'];
|
||||
$item['add_time'] = strtotime($item['_add_time']);
|
||||
$item['productInfo'] = $item['orderInfo'] = [];
|
||||
$item['productInfo'] = $item['orderInfo'] = null;
|
||||
if ($item['msn_type'] == self::MSN_TYPE_GOODS && $item['msn']) {
|
||||
$productIds[] = $item['msn'];
|
||||
} elseif ($item['msn_type'] == self::MSN_TYPE_ORDER && $item['msn']) {
|
||||
@ -155,7 +155,7 @@ class StoreServiceLogServices extends BaseServices
|
||||
|
||||
foreach ($list as &$item) {
|
||||
if ($item['msn_type'] == self::MSN_TYPE_GOODS && $item['msn']) {
|
||||
$item['productInfo'] = $productList[$item['msn']] ?? [];
|
||||
$item['productInfo'] = $productList[$item['msn']] ?? null;
|
||||
} elseif ($item['msn_type'] == self::MSN_TYPE_ORDER && $item['msn']) {
|
||||
$order = $orderInfo[$item['msn']] ?? null;
|
||||
if ($order) {
|
||||
@ -164,7 +164,7 @@ class StoreServiceLogServices extends BaseServices
|
||||
$order['add_time_h'] = date('H:i:s', $order['add_time']);
|
||||
$item['orderInfo'] = $order;
|
||||
} else {
|
||||
$item['orderInfo'] = [];
|
||||
$item['orderInfo'] = null;
|
||||
}
|
||||
}
|
||||
$item['msn_type'] = (int)$item['msn_type'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user