|
@@ -95,6 +95,7 @@ class Goodup extends Base
|
|
|
$supplier = Db::name("supplier")->where(['code'=>$value['supplierNo']])->find();
|
|
|
$value['supplier_name']=isset($supplier['name'])?$supplier['name']:"";
|
|
|
$value['good_info_img']=json_decode($value['good_info_img'],true);
|
|
|
+ $value['good_img']=json_decode($value['good_img'],true);
|
|
|
$value['exclusive']=makeExcluse($value['is_exclusive']);
|
|
|
$value['noble_name']=isset($value['noble_metal'])&&$value['noble_metal']!=0?$this->noble[$value['noble_metal']] :"";
|
|
|
$data[]=$value;
|
|
@@ -241,12 +242,12 @@ class Goodup extends Base
|
|
|
}
|
|
|
$is_diff = isset($this->post['is_diff'])&&$this->post['is_diff']!==""? intval($this->post['is_diff']):"0";
|
|
|
|
|
|
- $good_img = isset($this->post['good_img'])&&$this->post['good_img']!==""? trim($this->post['good_img']):"";
|
|
|
+ $good_img = isset($this->post['good_img'])&&!empty($this->post['good_img'])? $this->post['good_img']:"";
|
|
|
$config = isset($this->post['config'])&&$this->post['config']!==""? trim($this->post['config']):"";
|
|
|
$other_config = isset($this->post['other_config'])&&$this->post['other_config']!==""? trim($this->post['other_config']):"";
|
|
|
-// if($good_img===""){
|
|
|
-// return error_show(1004,"参数good_img不能为空");
|
|
|
-// }
|
|
|
+ if($good_img===""){
|
|
|
+ return error_show(1004,"参数good_img不能为空");
|
|
|
+ }
|
|
|
$good_thumb_img = isset($this->post['good_thumb_img'])&&$this->post['good_thumb_img']!==""? trim($this->post['good_thumb_img']):"";
|
|
|
if($good_thumb_img===""){
|
|
|
return error_show(1004,"参数good_thumb_img不能为空");
|
|
@@ -330,7 +331,7 @@ class Goodup extends Base
|
|
|
"lead_time"=>$lead_time,
|
|
|
"sample_day"=>$sample_day,
|
|
|
"sample_fee"=>$sample_fee,
|
|
|
- "good_img"=>$good_img,
|
|
|
+ "good_img"=>json_encode($good_img),
|
|
|
"good_thumb_img"=>$good_thumb_img,
|
|
|
"good_info_img"=>json_encode($good_info_img),
|
|
|
"cert_fee"=>$cert_fee,
|
|
@@ -547,10 +548,10 @@ class Goodup extends Base
|
|
|
// }
|
|
|
$sample_fee = isset($this->post['sample_fee'])&&$this->post['sample_fee']!==""? floatval($this->post['sample_fee']):"0";
|
|
|
|
|
|
- $good_img = isset($this->post['good_img'])&&$this->post['good_img']!==""? trim($this->post['good_img']):"";
|
|
|
-// if($good_img===""){
|
|
|
-// return error_show(1004,"参数good_img不能为空");
|
|
|
-// }
|
|
|
+ $good_img = isset($this->post['good_img'])&&!empty($this->post['good_img'])? $this->post['good_img']:"";
|
|
|
+ if($good_img===""){
|
|
|
+ return error_show(1004,"参数good_img不能为空");
|
|
|
+ }
|
|
|
$good_thumb_img = isset($this->post['good_thumb_img'])&&$this->post['good_thumb_img']!==""? trim($this->post['good_thumb_img']):"";
|
|
|
if($good_thumb_img===""){
|
|
|
return error_show(1004,"参数good_thumb_img不能为空");
|
|
@@ -595,7 +596,7 @@ class Goodup extends Base
|
|
|
"lead_time"=>$lead_time,
|
|
|
"sample_day"=>$sample_day,
|
|
|
"sample_fee"=>$sample_fee,
|
|
|
- "good_img"=>$good_img,
|
|
|
+ "good_img"=>json_encode($good_img),
|
|
|
"good_thumb_img"=>$good_thumb_img,
|
|
|
"good_info_img"=>json_encode($good_info_img),
|
|
|
"status"=>$count>0?2:1,
|
|
@@ -831,6 +832,7 @@ class Goodup extends Base
|
|
|
$data['exclusive']=$excluse;
|
|
|
$data['noble_name']=isset($data['noble_metal'])&&$data['noble_metal']!=0?$this->noble[$data['noble_metal']] :"";
|
|
|
$data["good_info_img"]=$data['good_info_img']!=""? json_decode($data['good_info_img'],true):[];
|
|
|
+ $data["good_img"]=$data['good_img']!=""? json_decode($data['good_img'],true):[];
|
|
|
$speclist=[];
|
|
|
if(!empty($spec)){
|
|
|
foreach ($spec as $value){
|
|
@@ -1480,10 +1482,10 @@ class Goodup extends Base
|
|
|
// }
|
|
|
$sample_fee = isset($this->post['sample_fee'])&&$this->post['sample_fee']!==""? floatval($this->post['sample_fee']):"0";
|
|
|
|
|
|
- $good_img = isset($this->post['good_img'])&&$this->post['good_img']!==""? trim($this->post['good_img']):"";
|
|
|
-// if($good_img===""){
|
|
|
-// return error_show(1004,"参数good_img不能为空");
|
|
|
-// }
|
|
|
+ $good_img = isset($this->post['good_img'])&&!empty($this->post['good_img'])? $this->post['good_img']:"";
|
|
|
+ if($good_img===""){
|
|
|
+ return error_show(1004,"参数good_img不能为空");
|
|
|
+ }
|
|
|
$good_thumb_img = isset($this->post['good_thumb_img'])&&$this->post['good_thumb_img']!==""? trim($this->post['good_thumb_img']):"";
|
|
|
if($good_thumb_img===""){
|
|
|
return error_show(1004,"参数good_thumb_img不能为空");
|
|
@@ -1553,7 +1555,7 @@ class Goodup extends Base
|
|
|
"lead_time"=>$lead_time,
|
|
|
"sample_day"=>$sample_day,
|
|
|
"sample_fee"=>$sample_fee,
|
|
|
- "good_img"=>$good_img,
|
|
|
+ "good_img"=>json_encode($good_img),
|
|
|
"good_thumb_img"=>$good_thumb_img,
|
|
|
"good_info_img"=>json_encode($good_info_img),
|
|
|
"cert_fee"=>$cert_fee,
|