wesmiler 2 年之前
父節點
當前提交
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'])) {