wugg 2 years ago
parent
commit
17f25ce8e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/CatPlat.php

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

@@ -227,7 +227,7 @@ use think\App;class CatPlat extends Base{
         if($spuCode==""){
             return error_show(1005,"参数spuCode不能为空");
         }
-        $platid=  isset($post['platform_id'])&&$post['platform_id']!=""?intval($post['platform_id']) :"";
+        $platid=  isset($this->post['platform_id'])&&$this->post['platform_id']!=""?intval($this->post['platform_id']) :"";
         if($platid=="") return error_show(1005,"参数 platform_id 不能为空");
          $platform = Db::name("platform")->where(["id"=>$platid,"is_del"=>0])->find();
         if($platform==false){