Kirin %!s(int64=3) %!d(string=hai) anos
pai
achega
751d15f5b5
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      app/models/system/SystemStoreApply.php

+ 4 - 0
app/models/system/SystemStoreApply.php

@@ -30,6 +30,10 @@ class SystemStoreApply extends BaseModel
      */
      */
     protected $name = 'system_store_apply';
     protected $name = 'system_store_apply';
 
 
+    protected $append = [
+        'latlng'
+    ];
+
     public static function getLatlngAttr($value, $data)
     public static function getLatlngAttr($value, $data)
     {
     {
         return $data['latitude'] . ',' . $data['longitude'];
         return $data['latitude'] . ',' . $data['longitude'];