zilong 4 년 전
부모
커밋
bc821f3e32
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
     }