rabin 1 день тому
батько
коміт
da691919bb
2 змінених файлів з 3 додано та 2 видалено
  1. 3 1
      app/Api/Page/Update.php
  2. 0 1
      app/Lib/Page.php

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

@@ -3,6 +3,7 @@ use Dever;
 use Manage\Lib\Page;
 ini_set("memory_limit", -1);
 set_time_limit(0);
+ini_set('max_input_vars', 10000);
 # 更新页 项目着急上线 以后优化并封装
 class Update extends Page
 {
@@ -396,7 +397,8 @@ class Update extends Page
         }
         if ($update) {
             $data = $other = $sku = [];
-            $input = Dever::input();
+            $input = base64_decode(Dever::input('data'));
+            $input = Dever::json_decode($input);
             $id = false;
             if (isset($input['id']) && $input['id'] > 0) {
                 $id = $input['id'];

+ 0 - 1
app/Lib/Page.php

@@ -1,6 +1,5 @@
 <?php namespace Manage\Lib;
 use Dever;
-ini_set('max_input_vars', 10000);
 # 通用页面 项目着急上线 以后优化并封装
 class Page extends Auth
 {