|
|
|
@ -211,7 +211,7 @@ class OrderOnlineService implements OrderOnlineServiceInterface |
|
|
|
|
|
|
|
// 禁止店铺自己下自己的单
|
|
|
|
if (in_array($userId, [$store->user_id, $store->admin_id])) { |
|
|
|
throw new ErrorCodeException(ErrorCode::ORDER_ONLINE_FAIL, '无法购买自己店铺商品', ['store' => json_encode($store), 'user_id' => $userId, 'store_item' => $storeItem]); |
|
|
|
throw new ErrorCodeException(ErrorCode::ORDER_ONLINE_LIMIT_STORE_BUY_SELF, '', ['store' => json_encode($store), 'user_id' => $userId, 'store_item' => $storeItem]); |
|
|
|
} |
|
|
|
|
|
|
|
$storeType = $store->category_id; |
|
|
|
|