fixed position

This commit is contained in:
Edward Yang 2023-05-11 15:11:02 +08:00
parent ffaef2312b
commit f26e239668
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ class ProductService
DB::beginTransaction();
$data['brand_id'] = (int) $data['brand_id'];
$data['position'] = (int) $data['position'];
$data['weight'] = (float) $data['weight'];
$data['variables'] = json_decode($data['variables']);
$product->fill($data);