소스 검색

生日给返回日期格式

lizhen_gitee 1 년 전
부모
커밋
243e9c9bca
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      application/common/library/Auth.php

+ 1 - 0
application/common/library/Auth.php

@@ -542,6 +542,7 @@ class Auth
         $new_data = [
             'setpassword'    => !empty($this->password) ? 1 : 0,
             'age'            => birthtime_to_age($this->birthday),
+            'birthday'       => date('Y-m-d',$this->birthday),
             'truename'       => ($this->idcard_status == 1 && isset($idcard_confirm['truename'])) ? $idcard_confirm['truename'] : '',
         ];