|
|
@@ -32,10 +32,12 @@ class WastController extends Controller
|
|
|
foreach ($productList as $product) {
|
|
|
$itemInfo = $product->itemInfo ?? '';
|
|
|
if (empty($itemInfo)) {
|
|
|
+ $transaction->rollBack();
|
|
|
continue;
|
|
|
}
|
|
|
$arr = json_decode($itemInfo, true);
|
|
|
if (is_array($arr) == false) {
|
|
|
+ $transaction->rollBack();
|
|
|
continue;
|
|
|
}
|
|
|
$name = $arr['itemName'] ?? '';
|