dever 3 tahun lalu
induk
melakukan
45e34ebdb8
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      src/Applet.php

+ 4 - 0
src/Applet.php

@@ -15,6 +15,10 @@ class Applet extends Base
         $uid = $this->check();
         $user = Dever::load('passport/user-one', $uid);
 
+        if ($user && $user['birthday']) {
+            $user['birthday'] = date('Y-m-d', $user['birthday']);
+        }
+
         return $user;
     }