|
|
@@ -129,7 +129,7 @@ class CheckOrderController extends BaseController
|
|
|
foreach ($ghsItemInfo as $key => $val) {
|
|
|
$pId = $val['productId'] ?? 0;
|
|
|
$info = ProductClass::getById($pId, true);
|
|
|
- if ($info->mainId != 2128) {
|
|
|
+ if (!empty($info) && $info->mainId != 2128) {
|
|
|
unset($ghsItemInfo[$key]);
|
|
|
}
|
|
|
}
|