wesmiler hai 2 meses
pai
achega
0a2f628237
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/Models/MeetingModel.php

+ 2 - 2
app/Models/MeetingModel.php

@@ -22,7 +22,7 @@ class MeetingModel extends BaseModel
     // 设置数据表
     // 设置数据表
     protected $table = 'meetings';
     protected $table = 'meetings';
 
 
-    protected $appends = ['city','time_text'];
+    protected $appends = ['areas','time_text'];
 
 
     public function getThumbAttribute($value)
     public function getThumbAttribute($value)
     {
     {
@@ -47,7 +47,7 @@ class MeetingModel extends BaseModel
     /**
     /**
      * @return array
      * @return array
      */
      */
-    public function getCityAttribute()
+    public function getAreasAttribute()
     {
     {
         return [$this->province_id,$this->city_id,$this->district_id];
         return [$this->province_id,$this->city_id,$this->district_id];
     }
     }