xiaogang 4 years ago
parent
commit
675c89db08
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/Services/NoticeService.php

+ 2 - 0
app/Services/NoticeService.php

xqd
@@ -54,6 +54,8 @@ class NoticeService
         $query = $query->toArray();
         foreach ($query['data'] as $k=>$v){
             $query['data'][$k]['distance'] = 0;  //计算距离
+            $query['data'][$k]['age'] = birthday($v['birthday']);  //计算距离
+
         }
         return $query;
     }