wesmiler 2 лет назад
Родитель
Сommit
fee2e0ec02
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      app/Services/Api/MemberService.php

+ 3 - 1
app/Services/Api/MemberService.php

@@ -106,7 +106,9 @@ class MemberService extends BaseService
             $info['custom_telegram'] = ConfigService::make()->getConfigByCode('custom_telegram');
             $info['custom_email'] = ConfigService::make()->getConfigByCode('custom_email');
 
-       
+           if(isset($info['birthday'])){
+               $info['birthday_text'] = $info['birthday']? date('Y-m-d',$info['birthday']) : '';
+           }
 
             // 二维码
             if (in_array($type, ['detail'])) {