wugg hace 2 años
padre
commit
36a7123604
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/admin/controller/Goodup.php

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

@@ -522,9 +522,9 @@ class Goodup extends Base
         if($data==false){
             return error_show(1004,"未找到商品数据");
         }
-        $data = Db::name("good_platform")->where(["spuCode"=>$supcode,"is_del"=>0])->where("exam_status","<>",8)
+        $is_down = Db::name("good_platform")->where(["spuCode"=>$supcode,"is_del"=>0])->where("exam_status","<>",8)
             ->find();
-        if($data!=false){
+        if($is_down!=false){
             return error_show(1004,"存在未下线商品数据");
         }
         $good_name= isset($this->post['good_name'])&&$this->post['good_name']!="" ? trim($this->post['good_name']):"";