|
@@ -53,8 +53,8 @@ class Sale extends Base
|
|
|
$pay_id = isset($this->post['pay_id']) && $this->post['pay_id'] !== "" ? intval($this->post['pay_id']) : "0";
|
|
|
if($pay_id!=0){
|
|
|
$payinfo =Db::name("pay")->where("id",$pay_id)->findOrEmpty();
|
|
|
- if(empty($payinfo)) return error_show(1004, "付款流程信息未找到");
|
|
|
- if($payinfo['status']!=1)return error_show(1004, "付款流程信息已禁用");
|
|
|
+ if(empty($payinfo)) return error_show(1004, "支付渠道信息未找到");
|
|
|
+ if($payinfo['status']!=1)return error_show(1004, "支付渠道已禁用");
|
|
|
}
|
|
|
$sendtype = isset($this->post['sendtype']) && $this->post['sendtype'] !== "" ? intval($this->post['sendtype']) : "";
|
|
|
if ($sendtype === '') {
|
|
@@ -1081,6 +1081,7 @@ class Sale extends Base
|
|
|
"zxNo" => $bidNo,
|
|
|
"platform_order" => $platform_order,
|
|
|
"platform_id" => $zxorder['platform_code'],
|
|
|
+ "pay_id" => $zxorder['pay_id'],
|
|
|
"remark" => $remark,
|
|
|
"arrive_time" => $arrtime,
|
|
|
"is_stock" => 0,
|
|
@@ -1401,6 +1402,7 @@ class Sale extends Base
|
|
|
$good['pgNo'] = $feedback['pgNo'];
|
|
|
$good['platform_id'] = $project['platform_id'];
|
|
|
$good['arrtime'] = $arrtime;
|
|
|
+ $good['pay_id'] = $project['pay_id'];
|
|
|
$good['rm'] = $rm;
|
|
|
$good['ri'] = $ri;
|
|
|
$good['send_num'] = 0;
|
|
@@ -1645,6 +1647,7 @@ class Sale extends Base
|
|
|
'good_weight' => $goodinfo['good_weight'],
|
|
|
'gold_price' => $goodinfo['gold_price'],
|
|
|
'cost_price' => $goodinfo['sale_cost_fee'],
|
|
|
+ 'pay_id' => $good['pay_id'],
|
|
|
'diff_weight' => 0,
|
|
|
'diff_fee' => 0,
|
|
|
"addtime" => date("Y-m-d H:i:s"),
|
|
@@ -1937,6 +1940,7 @@ class Sale extends Base
|
|
|
'good_weight' => $good['noble_weight'],
|
|
|
'gold_price' => isset($good['cgd_gold_price']) ? $good['cgd_gold_price'] : 0,
|
|
|
'cost_price' => $goodlass['cost_fee'],
|
|
|
+ 'pay_id' => $good['pay_id'],
|
|
|
'diff_weight' => 0,
|
|
|
'diff_fee' => 0,
|
|
|
"addtime" => date("Y-m-d H:i:s"),
|
|
@@ -2467,6 +2471,7 @@ class Sale extends Base
|
|
|
if (empty($einfo)) {
|
|
|
return error_show(1002, "未找到销售订单数据");
|
|
|
}
|
|
|
+
|
|
|
if ($einfo['order_type'] == 3||$einfo['order_type'] == 4) {
|
|
|
$goon = Db::name("good_zixun")->where(["spuCode" => $einfo['good_code'], "is_del" => 0])->find();
|
|
|
} else {
|
|
@@ -2580,7 +2585,7 @@ class Sale extends Base
|
|
|
$einfo['good_num'] -= $einfo['th_num'];
|
|
|
$einfo['send_num'] -= $einfo['th_num'];
|
|
|
$einfo['total_price'] = round($einfo['total_price'] - $einfo['th_fee'], 2);
|
|
|
-
|
|
|
+ $einfo['pay_name'] = $einfo['pay_id']==0?"":Db::name("pay")->where("id",$einfo['pay_id'])->value("pay_name",'');
|
|
|
//处理凭证
|
|
|
if ($einfo['order_type'] == 1 || $einfo['order_type'] == 2) {
|
|
|
$proof = Db::name('good_proof')
|