|
@@ -4504,11 +4504,9 @@ class WholeController extends Curd
|
|
|
return json_fail('无法打印未支付的订单');
|
|
|
}
|
|
|
|
|
|
- if (!empty($premises) || $restaurant) {
|
|
|
+ if (!empty($premises) || !empty($restaurant)) {
|
|
|
if ($order->order_classify == 'DISHES' && empty($restaurant)) {
|
|
|
$restaurant = SysDept::where('dept_super_id', $premises->dept_id)->where('dept_category', '餐厅')->first();
|
|
|
- } else {
|
|
|
- $restaurant = $premises;
|
|
|
}
|
|
|
|
|
|
if (!empty($restaurant->dept_extend_json)) {
|