wugg 2 лет назад
Родитель
Сommit
17f25ce8e5
1 измененных файлов с 1 добавлено и 1 удалено
  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){