下单展示付款方式

This commit is contained in:
2020-08-29 23:21:58 +08:00
parent 4184b2c7bc
commit 59aacbb71b
2 changed files with 15 additions and 1 deletions

View File

@ -3087,7 +3087,7 @@ class Orders extends Base{
}else{
$where['orderNo'] = $orderNo;
}
$orders = model('orders')->where($where)->field('needPay,payRand')->select();
$orders = model('orders')->where($where)->field('needPay,payRand,shopId')->select();
if(empty($orders))return [];
$needPay = 0;
$payRand = 0;
@ -3098,6 +3098,13 @@ class Orders extends Base{
$data = array();
$data["needPay"] = $needPay;
$data["payRand"] = $payRand;
$shopId = $orders[0]['shopId'];
foreach ($orders as $_) {
if ($shopId != $_['shopId']) {
$shopId = -1;
}
}
if ($shopId>0) $data["shopId"] = $shopId;
return $data;
}