wugg 1 year ago
parent
commit
76fa22affd
1 changed files with 2 additions and 5 deletions
  1. 2 5
      app/admin/controller/GoodChange.php

+ 2 - 5
app/admin/controller/GoodChange.php

@@ -9,7 +9,6 @@ use think\facade\Validate;
 class GoodChange extends Base
 {
 	protected $model=null;
-	protected $novalidate=["*"];
     public function __construct(App $app) {
     	parent::__construct($app);
     	$this->model=new \app\admin\model\GoodChange();
@@ -33,8 +32,6 @@ class GoodChange extends Base
         foreach ($list as $item){
         	
             $keys = array_keys($item["before"]);
-           $tem = [];
-
             foreach ($keys as $key){
             	$temp=[];
                 $temp['field'] = \app\admin\model\GoodChange::$mapField[$key] ?? "";
@@ -42,9 +39,9 @@ class GoodChange extends Base
                 $temp['after'] = $item['after'][$key] ?? "";
                 $temp['apply_name'] = $item['apply_name'];
                 $temp['addtime'] = $item['addtime'];
-              $tem[]=$temp;
+                $result[] = $temp;
             }
-            $result[] = $tem;
+           
             
         }