rabin 16 hours ago
parent
commit
b6c1120839
1 changed files with 1 additions and 4 deletions
  1. 1 4
      app/Api/Page/Update.php

+ 1 - 4
app/Api/Page/Update.php

@@ -399,10 +399,7 @@ class Update extends Page
             $data = $other = $sku = [];
             $input = base64_decode(Dever::input('data'));
             $input = Dever::json_decode($input);
-            $id = false;
-            if (isset($input['id']) && $input['id'] > 0) {
-                $id = $input['id'];
-            }
+            $id = Dever::input('id');
             $control = $this->control($data);
             foreach ($update as $k => $v) {
                 if (isset($input[$v['key']])) {