gorden 6 kuukautta sitten
vanhempi
säilyke
b72849263e
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 1 3
      app/admin/controller/order/WholeController.php
  2. 2 0
      app/functions.php

+ 1 - 3
app/admin/controller/order/WholeController.php

@@ -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)) {

+ 2 - 0
app/functions.php

@@ -43,6 +43,8 @@ if (!function_exists('http_post_json')) {
 
         $output = curl_exec($ch);
         curl_close($ch);
+
+        \support\Log::info("模拟请求", json_decode($output, true));
         return $output;
     }
 }