You've already forked qlg.tsgz.moe
下单展示付款方式
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user