Browse Source

生日给返回日期格式

lizhen_gitee 1 year ago
parent
commit
243e9c9bca
1 changed files with 1 additions and 0 deletions
  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'] : '',
         ];