Browse Source

完善功能

gorden 10 months ago
parent
commit
82e39a14d7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/admin/service/order/AppointmentService.php

+ 2 - 2
app/admin/service/order/AppointmentService.php

@@ -63,12 +63,12 @@ class AppointmentService
             $row->goods_sku_specs_json = !empty($row->goods_sku_specs_json) ? json_decode($row->goods_sku_specs_json, true) : [];
             $row->order_addtimes = date('Y-m-d H:i:s', $row->order_addtimes);
             $row->appointment_addtimes = date('Y-m-d H:i:s', $row->appointment_addtimes);
-//            $row->appointment_apply_json = !empty($row->appointment_apply_json) ? json_decode($row->appointment_apply_json) : [];
+            $row->appointment_apply_json = !empty($row->appointment_apply_json) ? json_decode($row->appointment_apply_json,true) : [];
             if ($row->appointment_category == 'NOFEE') {
                 $row->member_benefit_name = "后付费预约";
             }
             if (!empty($row->appointment_apply_json)) {
-                $applyJson = json_decode($row->appointment_apply_json, true);
+                $applyJson = $row->appointment_apply_json;
                 $row->person = $applyJson['person'] ?? '';
                 $row->appointment_times = $applyJson['times'] ?? '';
             }