zilong 4 năm trước cách đây
mục cha
commit
bc821f3e32
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Models/Docter.php

+ 1 - 1
app/Models/Docter.php

xqd
@@ -98,7 +98,7 @@ class Docter extends BaseModel
 
     public function getAppointPriceAttribute()
     {
-        $appoint_price = DocterSetting::where('docter_id', $this->id)->where('type', 1)->where('status', 2)->value('appoint_price');
+        $appoint_price = DocterSetting::where('docter_id', $this->id)->where('type', 1)->where('status', 2)->orderBy('id', 'asc')->value('appoint_price');
         return $appoint_price*100;
     }