wesley 6 năm trước cách đây
mục cha
commit
83d9dbbd5e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Models/UserScheduleModel.php

+ 1 - 1
app/Models/UserScheduleModel.php

xqd
@@ -42,7 +42,7 @@ class UserScheduleModel extends BaseModel
     ];
 
     public function store(){
-        return (new StoreInfoModel())->find($this->store_id)->name;
+        return (new StoreInfoModel())->find($this->store_id)?(new StoreInfoModel())->find($this->store_id)->name:$this->store_id;
     }
 
 }