wugg 2 years ago
parent
commit
7485ba248a
1 changed files with 2 additions and 4 deletions
  1. 2 4
      app/admin/controller/Goodup.php

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

@@ -1515,10 +1515,8 @@ class Goodup extends Base
         if($market_price===""){
             return error_show(1004,"参数market_price不能为空");
         }
-        $nake_price = isset($this->post['nake_price'])&&$this->post['nake_price']!==""? floatval($this->post['nake_price']):"";
-        if($nake_price===""){
-            return error_show(1004,"参数nake_price不能为空");
-        }
+        $nake_price = isset($this->post['nake_price'])&&$this->post['nake_price']!==""? floatval($this->post['nake_price']):"0";
+
         $is_step = isset($this->post['is_step'])&&$this->post['is_step']!==""? intval($this->post['is_step']):"";
         if($is_step===""){
             return error_show(1004,"参数is_step不能为空");