wugg 2 years ago
parent
commit
05076465cd
2 changed files with 2 additions and 5 deletions
  1. 0 3
      app/admin/controller/Cat.php
  2. 2 2
      app/admin/controller/CatPlat.php

+ 0 - 3
app/admin/controller/Cat.php

@@ -426,9 +426,6 @@ public function edit(){
                 }
             }
             $itn =sear($id);
-
-                $catinfo=['cat_id'=>$id,'apply_name'=>$creater,"apply_id"=>$createrid,"fund_code"=>$fund_code,"status"=>$idinfo['status']];
-                $this->addPlat($catinfo);
             Db::commit();
             return error_show(0,"编辑成功");
         }else{

+ 2 - 2
app/admin/controller/CatPlat.php

@@ -318,8 +318,8 @@ use think\App;class CatPlat extends Base{
         if($status!==""){
             $where[]=['status',"=",$status];
         }
-        $page = isset($post['page'])&&$post['page']!=""?intval($post['page']) :"1";
-        $size = isset($post['size'])&&$post['size']!=""?intval($post['size']) :"15";
+        $page = isset($this->post['page'])&&$this->post['page']!=""?intval($this->post['page']) :"1";
+        $size = isset($this->post['size'])&&$this->post['size']!=""?intval($this->post['size']) :"15";
         $count = Db::name("cat")->where($where)->count();
         $total = ceil($count/$size);
         $page = $total> $page ? $page: intval($total);