dever 4 år sedan
förälder
incheckning
d18485e175
2 ändrade filer med 10 tillägg och 0 borttagningar
  1. 2 0
      src/Api.php
  2. 8 0
      src/App.php

+ 2 - 0
src/Api.php

@@ -27,6 +27,8 @@ class Api
 
             if (!$info['birthday']) {
                 $info['birthday'] = '';
+            } else {
+                $info['birthday'] = date('Y-m-d', $info['birthday']);
             }
         }
         

+ 8 - 0
src/App.php

@@ -19,6 +19,8 @@ class App extends Base
         $sex = Dever::input('gender');
         $city = Dever::input('city');
         $mobile = Dever::input('mobile');
+        $title = Dever::input('title');
+        $birthday = Dever::input('birthday');
         $province = Dever::input('province');
         $country = Dever::input('country');
         $desc = Dever::input('info');
@@ -34,6 +36,12 @@ class App extends Base
             if ($desc) {
                 $update['info'] = $desc;
             }
+            if ($title) {
+                $update['title'] = $title;
+            }
+            if ($birthday) {
+                $update['birthday'] = Dever::maketime($birthday);
+            }
             if ($country && $province && $city) {
             	$update['set_area'] = $country . ',' . $province . ',' . $city;
             }