zilong 4 years ago
parent
commit
8255188ca9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Models/Docter.php

+ 1 - 1
app/Models/Docter.php

xqd
@@ -128,7 +128,7 @@ class Docter extends BaseModel
 
     public function getPhoneMinutesAttribute()
     {
-        if (!empty($this->phone_minutes)) {
+        if (!isset($this->phone_minutes) || empty($this->phone_minutes)) {
             return SystemConfig::where('group', 'docter_config')->where('key', 'phone_base_time')->value('value');
         }