|
@@ -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;
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|