更新订单支付处理
This commit is contained in:
parent
889dd01e45
commit
b897d2ac4f
@ -114,7 +114,7 @@ class StoreGroupOrderRepository extends BaseRepository
|
|||||||
*/
|
*/
|
||||||
public function detail($uid, $id, $flag = true)
|
public function detail($uid, $id, $flag = true)
|
||||||
{
|
{
|
||||||
//'paid' => 0,
|
// 'paid' => 0
|
||||||
$where = $this->getAll ? ['uid' => $uid] : ['uid' => $uid];
|
$where = $this->getAll ? ['uid' => $uid] : ['uid' => $uid];
|
||||||
$order = StoreGroupOrder::where($where)
|
$order = StoreGroupOrder::where($where)
|
||||||
->where('group_order_id', $id)
|
->where('group_order_id', $id)
|
||||||
@ -127,6 +127,9 @@ class StoreGroupOrderRepository extends BaseRepository
|
|||||||
}, 'orderProduct', 'presellOrder']);
|
}, 'orderProduct', 'presellOrder']);
|
||||||
}, 'interest'])
|
}, 'interest'])
|
||||||
->order('create_time DESC')->append(['cancel_time', 'cancel_unix'])->find();
|
->order('create_time DESC')->append(['cancel_time', 'cancel_unix'])->find();
|
||||||
|
if ($order['paid'] == 1 && $order['pay_type'] != 8) {
|
||||||
|
throw new DataNotFoundException('订单不存在或已取消');
|
||||||
|
}
|
||||||
if (empty($order)) {
|
if (empty($order)) {
|
||||||
throw new DataNotFoundException('订单不存在或已取消');
|
throw new DataNotFoundException('订单不存在或已取消');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user