|
|
@@ -59,9 +59,10 @@ class ProductController extends Controller
|
|
|
$ptItem = PtItemClass::getById($itemId, true);
|
|
|
$weight = $product->weight ?? 0;
|
|
|
if (!empty($weight)) {
|
|
|
+ $preWeight = $ptItem->weight ?? 0;
|
|
|
$ptItem->weight = $weight;
|
|
|
$ptItem->save();
|
|
|
- echo "平台花材{$ptItem->id} 重量已更新为{$weight} \n";
|
|
|
+ echo "平台花材{$ptItem->id} 重量由{$preWeight}更新为{$weight} \n";
|
|
|
}
|
|
|
}
|
|
|
}
|