瀏覽代碼

预约记录

linwu 8 月之前
父節點
當前提交
a28b27e4c7
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      app/common/model/AppointmentApplication.php

+ 5 - 1
app/common/model/AppointmentApplication.php

@@ -67,7 +67,11 @@ class AppointmentApplication extends Model
     //appointment_date
     public function getAppointmentDateAttr($value, $data)
     {
-        return $this->appointmentTicket->appointment_daytime;
+        if (empty($this->appointmentTicket)) {
+            return '';
+        } else {
+            return $this->appointmentTicket->appointment_daytime;
+        }
     }
 
     //childs_text