|
@@ -526,13 +526,13 @@ class Goodup extends Base
|
|
|
return error_show(1004,"参数good_size不能为空");
|
|
|
}
|
|
|
$proof_type = isset($this->post['proof_type'])&&$this->post['proof_type']!=""? trim($this->post['proof_type']):"";
|
|
|
- if($proof_type==''){
|
|
|
- return error_show(1004,"参数proof_type不能为空");
|
|
|
- }
|
|
|
+// if($proof_type==''){
|
|
|
+// return error_show(1004,"参数proof_type不能为空");
|
|
|
+// }
|
|
|
$proof_url = isset($this->post['proof_url'])&&$this->post['proof_url']!=""? trim($this->post['proof_url']):"";
|
|
|
- if($proof_url==''){
|
|
|
- return error_show(1004,"参数proof_url不能为空");
|
|
|
- }
|
|
|
+// if($proof_url==''){
|
|
|
+// return error_show(1004,"参数proof_url不能为空");
|
|
|
+// }
|
|
|
$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不能为空");
|
|
@@ -764,7 +764,8 @@ class Goodup extends Base
|
|
|
throw new \Exception("商品规格值创建失败");
|
|
|
}
|
|
|
}
|
|
|
- $proof=[
|
|
|
+ if($proof_url!==''){
|
|
|
+ $proof=[
|
|
|
'spuCode'=>$spucode,
|
|
|
'proof_type'=>$proof_type,
|
|
|
'proof_url'=>$proof_url,
|
|
@@ -776,6 +777,8 @@ class Goodup extends Base
|
|
|
];
|
|
|
$inproof = Db::name("good_proof")->insert($proof);
|
|
|
if($inproof==false)throw new \Exception("商品凭证新建失败");
|
|
|
+ }
|
|
|
+
|
|
|
// $catinfo = Db::name("cat")->where(["id"=>$cat_id])->find();
|
|
|
// $budget = isset($catinfo['order_rate']) ? $catinfo['order_rate']/100:0;
|
|
|
$top_cat_id = made($cat_id);//获取所有分类
|
|
@@ -1846,6 +1849,19 @@ class Goodup extends Base
|
|
|
|
|
|
}
|
|
|
if ($post['exam_status'] == 3) {
|
|
|
+ //todo::需要去掉;
|
|
|
+ $proof=[
|
|
|
+ 'spuCode'=>$platform['spuCode'],
|
|
|
+ 'proof_type'=>$post['proof_type'],
|
|
|
+ 'proof_url'=>$post['proof_url'],
|
|
|
+ 'is_del'=>0,
|
|
|
+ "creater"=>$this->uid,
|
|
|
+ "createrid"=>$this->uname,
|
|
|
+ "addtime"=>date("Y-m-d H:i:s"),
|
|
|
+ "updatetime"=>date("Y-m-d H:i:s")
|
|
|
+ ];
|
|
|
+ $inproof = Db::name("good_proof")->insert($proof);
|
|
|
+ if($inproof==false)throw new \Exception("商品凭证新建失败");
|
|
|
if(empty($post['good_ladder']))throw new \Exception("商品阶梯价不能为空");
|
|
|
foreach ($post['good_ladder'] as $value){
|
|
|
$lemp=[];
|