|
@@ -500,9 +500,6 @@ class Goodup extends Base
|
|
|
}
|
|
|
|
|
|
$good_size = isset($this->post['good_size'])&&$this->post['good_size']!=""? trim($this->post['good_size']):"";
|
|
|
- if($good_size==''){
|
|
|
- return error_show(1004,"参数good_size不能为空");
|
|
|
- }
|
|
|
$proof_type = isset($this->post['proof_type'])&&$this->post['proof_type']!=""? trim($this->post['proof_type']):"";
|
|
|
$proof_url = isset($this->post['proof_url'])&&$this->post['proof_url']!=""? trim($this->post['proof_url']):"";
|
|
|
|
|
@@ -521,39 +518,25 @@ class Goodup extends Base
|
|
|
$auth_img = isset($this->post['auth_img'])&&$this->post['auth_img']!=""? trim($this->post['auth_img']):"";
|
|
|
|
|
|
$after_sales = isset($this->post['after_sales'])&&$this->post['after_sales']!=""? trim($this->post['after_sales']):"";
|
|
|
- if($after_sales==""){
|
|
|
- return error_show(1004,"参数after_sales不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$craft_desc = isset($this->post['craft_desc'])&&$this->post['craft_desc']!=""? trim($this->post['craft_desc']):"";
|
|
|
|
|
|
$good_remark = isset($this->post['good_remark'])&&$this->post['good_remark']!=""? trim($this->post['good_remark']):"";
|
|
|
- if($good_remark===""){
|
|
|
- return error_show(1004,"参数good_remark不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$weight = isset($this->post['weight'])&&$this->post['weight']!==""? floatval($this->post['weight']):"";
|
|
|
if($weight===""){
|
|
|
return error_show(1004,"参数weight不能为空");
|
|
|
}
|
|
|
$packing_way = isset($this->post['packing_way'])&&$this->post['packing_way']!==""? trim($this->post['packing_way']):"";
|
|
|
- if($packing_way===""){
|
|
|
- return error_show(1004,"参数packing_way不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$packing_size = isset($this->post['packing_size'])&&$this->post['packing_size']!==""? trim($this->post['packing_size']):"";
|
|
|
- if($packing_size===""){
|
|
|
- return error_show(1004,"参数packing_size不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$packing_spec = isset($this->post['packing_spec'])&&$this->post['packing_spec']!==""? trim($this->post['packing_spec']):"";
|
|
|
- if($packing_spec===""){
|
|
|
- return error_show(1004,"参数packing_spec不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$packing_weight = isset($this->post['packing_weight'])&&$this->post['packing_weight']!==""? floatval($this->post['packing_weight']):"";
|
|
|
- if($packing_weight===""){
|
|
|
- return error_show(1004,"参数packing_weight不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$packing_list = isset($this->post['packing_list'])&&$this->post['packing_list']!==""? trim($this->post['packing_list']):"";
|
|
|
- if($packing_list===""){
|
|
|
- return error_show(1004,"参数packing_list不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$good_bar = isset($this->post['good_bar'])&&$this->post['good_bar']!==""? trim($this->post['good_bar']):"";
|
|
|
$supply_area = isset($this->post['supply_area'])&&$this->post['supply_area']!==""? intval($this->post['supply_area']):"";
|
|
|
if($supply_area===""){
|
|
@@ -564,9 +547,7 @@ class Goodup extends Base
|
|
|
return error_show(1004,"参数delivery_place不能为空");
|
|
|
}
|
|
|
$origin_place = isset($this->post['origin_place'])&&$this->post['origin_place']!==""? trim($this->post['origin_place']):"";
|
|
|
- if($origin_place===""){
|
|
|
- return error_show(1004,"参数origin_place不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$delivery_day = isset($this->post['delivery_day'])&&$this->post['delivery_day']!==""? intval($this->post['delivery_day']):"";
|
|
|
if($delivery_day===""){
|
|
|
return error_show(1004,"参数delivery_day不能为空");
|
|
@@ -928,9 +909,7 @@ class Goodup extends Base
|
|
|
if (isset($supplier_account[$data['supplierNo']])) return json_show(1004, '原供应商已开通账号,不允许操作');
|
|
|
}
|
|
|
$good_size = isset($this->post['good_size'])&&$this->post['good_size']!=""? trim($this->post['good_size']) :"";
|
|
|
- if($good_size==''){
|
|
|
- return error_show(1004,"参数good_size不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$company_id = isset($this->post['company_id'])&&$this->post['company_id']!=""? trim($this->post['company_id']) :"";
|
|
|
if($company_id==''){
|
|
|
return error_show(1004,"参数company_id不能为空");
|
|
@@ -945,39 +924,25 @@ class Goodup extends Base
|
|
|
}
|
|
|
$auth_img = isset($this->post['auth_img'])&&$this->post['auth_img']!=""? trim($this->post['auth_img']):"";
|
|
|
$after_sales = isset($this->post['after_sales'])&&$this->post['after_sales']!=""? trim($this->post['after_sales']):"";
|
|
|
- if($after_sales==""){
|
|
|
- return error_show(1004,"参数after_sales不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$craft_desc = isset($this->post['craft_desc'])&&$this->post['craft_desc']!=""? trim($this->post['craft_desc']):"";
|
|
|
|
|
|
$good_remark = isset($this->post['good_remark'])&&$this->post['good_remark']!=""? trim($this->post['good_remark']):"";
|
|
|
- if($good_remark===""){
|
|
|
- return error_show(1004,"参数good_remark不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$weight = isset($this->post['weight'])&&$this->post['weight']!==""? floatval($this->post['weight']):"";
|
|
|
if($weight===""){
|
|
|
return error_show(1004,"参数weight不能为空");
|
|
|
}
|
|
|
$packing_way = isset($this->post['packing_way'])&&$this->post['packing_way']!==""? trim($this->post['packing_way']):"";
|
|
|
- if($packing_way===""){
|
|
|
- return error_show(1004,"参数packing_way不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$packing_size = isset($this->post['packing_size'])&&$this->post['packing_size']!==""? trim($this->post['packing_size']):"";
|
|
|
- if($packing_size===""){
|
|
|
- return error_show(1004,"参数packing_size不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$packing_spec = isset($this->post['packing_spec'])&&$this->post['packing_spec']!==""? trim($this->post['packing_spec']):"";
|
|
|
- if($packing_spec===""){
|
|
|
- return error_show(1004,"参数packing_spec不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$packing_weight = isset($this->post['packing_weight'])&&$this->post['packing_weight']!==""? floatval($this->post['packing_weight']):"";
|
|
|
- if($packing_weight===""){
|
|
|
- return error_show(1004,"参数packing_weight不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$packing_list = isset($this->post['packing_list'])&&$this->post['packing_list']!==""? trim($this->post['packing_list']):"";
|
|
|
- if($packing_list===""){
|
|
|
- return error_show(1004,"参数packing_list不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$good_bar = isset($this->post['good_bar'])&&$this->post['good_bar']!==""? trim($this->post['good_bar']):"";
|
|
|
$supply_area = isset($this->post['supply_area'])&&$this->post['supply_area']!==""? intval($this->post['supply_area']):"";
|
|
|
if($supply_area===""){
|
|
@@ -988,9 +953,7 @@ class Goodup extends Base
|
|
|
return error_show(1004,"参数delivery_place不能为空");
|
|
|
}
|
|
|
$origin_place = isset($this->post['origin_place'])&&$this->post['origin_place']!==""? $this->post['origin_place']:"";
|
|
|
- if($origin_place===""){
|
|
|
- return error_show(1004,"参数origin_place不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$delivery_day = isset($this->post['delivery_day'])&&$this->post['delivery_day']!==""? intval($this->post['delivery_day']):"";
|
|
|
if($delivery_day===""){
|
|
|
return error_show(1004,"参数delivery_day不能为空");
|
|
@@ -2415,9 +2378,6 @@ class Goodup extends Base
|
|
|
|
|
|
|
|
|
$good_size = isset($this->post['good_size'])&&$this->post['good_size']!=""? trim($this->post['good_size']) :"";
|
|
|
- if($good_size==''){
|
|
|
- return error_show(1004,"参数good_size不能为空");
|
|
|
- }
|
|
|
|
|
|
$is_auth = isset($this->post['is_auth'])&&$this->post['is_auth']!==""? intval($this->post['is_auth']):"";
|
|
|
if($is_auth===''){
|
|
@@ -2428,39 +2388,25 @@ class Goodup extends Base
|
|
|
// return error_show(1004,"商品不能为空");
|
|
|
// }
|
|
|
$after_sales = isset($this->post['after_sales'])&&$this->post['after_sales']!=""? trim($this->post['after_sales']):"";
|
|
|
- if($after_sales==""){
|
|
|
- return error_show(1004,"参数after_sales不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$craft_desc = isset($this->post['craft_desc'])&&$this->post['craft_desc']!=""? trim($this->post['craft_desc']):"";
|
|
|
|
|
|
$good_remark = isset($this->post['good_remark'])&&$this->post['good_remark']!=""? trim($this->post['good_remark']):"";
|
|
|
- if($good_remark===""){
|
|
|
- return error_show(1004,"参数good_remark不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$weight = isset($this->post['weight'])&&$this->post['weight']!==""? floatval($this->post['weight']):"";
|
|
|
if($weight===""){
|
|
|
return error_show(1004,"参数weight不能为空");
|
|
|
}
|
|
|
$packing_way = isset($this->post['packing_way'])&&$this->post['packing_way']!==""? trim($this->post['packing_way']):"";
|
|
|
- if($packing_way===""){
|
|
|
- return error_show(1004,"参数packing_way不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$packing_size = isset($this->post['packing_size'])&&$this->post['packing_size']!==""? trim($this->post['packing_size']):"";
|
|
|
- if($packing_size===""){
|
|
|
- return error_show(1004,"参数packing_size不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$packing_spec = isset($this->post['packing_spec'])&&$this->post['packing_spec']!==""? trim($this->post['packing_spec']):"";
|
|
|
- if($packing_spec===""){
|
|
|
- return error_show(1004,"参数packing_spec不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$packing_weight = isset($this->post['packing_weight'])&&$this->post['packing_weight']!==""? floatval($this->post['packing_weight']):"";
|
|
|
- if($packing_weight===""){
|
|
|
- return error_show(1004,"参数packing_weight不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$packing_list = isset($this->post['packing_list'])&&$this->post['packing_list']!==""? trim($this->post['packing_list']):"";
|
|
|
- if($packing_list===""){
|
|
|
- return error_show(1004,"参数packing_list不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$good_bar = isset($this->post['good_bar'])&&$this->post['good_bar']!==""? trim($this->post['good_bar']):"";
|
|
|
$supply_area = isset($this->post['supply_area'])&&$this->post['supply_area']!==""? intval($this->post['supply_area']):"";
|
|
|
if($supply_area===""){
|
|
@@ -2471,9 +2417,7 @@ class Goodup extends Base
|
|
|
return error_show(1004,"参数delivery_place不能为空");
|
|
|
}
|
|
|
$origin_place = isset($this->post['origin_place'])&&$this->post['origin_place']!==""? $this->post['origin_place']:"";
|
|
|
- if($origin_place===""){
|
|
|
- return error_show(1004,"参数origin_place不能为空");
|
|
|
- }
|
|
|
+
|
|
|
$delivery_day = isset($this->post['delivery_day'])&&$this->post['delivery_day']!==""? intval($this->post['delivery_day']):"";
|
|
|
if($delivery_day===""){
|
|
|
return error_show(1004,"参数delivery_day不能为空");
|