shish 4 years ago
parent
commit
2d82f6c40d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app-ghs/controllers/ProductController.php

+ 1 - 0
app-ghs/controllers/ProductController.php

@@ -406,6 +406,7 @@ class ProductController extends BaseController
 
         foreach ($itemData as $key => $data) {
             $id = $data['id'] ?? 0;
+            unset($data['id']);
             ProductClass::updateById($id, $data);
 
             $ptItemId = $infoList[$id]['itemId'] ?? 0;