处理取消订单的错误
This commit is contained in:
parent
28853edf1e
commit
3893b0f287
@ -146,7 +146,7 @@ class StoreGroupOrderRepository extends BaseRepository
|
|||||||
*/
|
*/
|
||||||
public function cancel($id, $uid = null)
|
public function cancel($id, $uid = null)
|
||||||
{
|
{
|
||||||
$groupOrder = $this->search(['paid' => 0, 'uid' => $uid ?? ''])->where('group_order_id', $id)->with(['orderList'])->find();
|
$groupOrder = $this->search(['paid' => 0, 'uid' => $uid ?? ''])->where('StoreGroupOrder.group_order_id', $id)->with(['orderList'])->find();
|
||||||
if (!$groupOrder)
|
if (!$groupOrder)
|
||||||
throw new ValidateException('订单不存在');
|
throw new ValidateException('订单不存在');
|
||||||
if ($groupOrder['paid'] != 0)
|
if ($groupOrder['paid'] != 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user