|
|
@@ -132,7 +132,7 @@ class OrderController extends ApiController
|
|
|
if (empty($shop)) return $this->apiResponseError('该商家不存在');
|
|
|
if ($shop['status'] != 1) return $this->apiResponseError('商家闭店休息中');
|
|
|
//获取桌号信息
|
|
|
- $table = TableNumber::where('shop_id',$shop_id)->where('table_number',$table_number)->select(['id','status'])->first();
|
|
|
+ $table = TableNumber::where('shop_id',$shop_id)->where('number',$table_number)->select(['id','status'])->first();
|
|
|
|
|
|
if (empty($table)) return $this->apiResponseError('桌号不存在');
|
|
|
if ($table->{'status'} != 1) return $this->apiResponseError('桌号不可用');
|