diff --git a/Application/Mobile/Controller/UserController.class.php b/Application/Mobile/Controller/UserController.class.php index 674d9ea2d..1abbee94e 100644 --- a/Application/Mobile/Controller/UserController.class.php +++ b/Application/Mobile/Controller/UserController.class.php @@ -272,7 +272,7 @@ class UserController extends BaseController $post = I('post.'); $account = $post['nickname']; $password = $post['password']; - $sex = $post['sex']; + $sex = isset($post['sex']) ? $post['sex'] : 0; if (empty($account)) { echo json_encode(array('status' => 0, 'msg' => '请填写昵称')); exit; diff --git a/Application/Mobile/View/User/register.html b/Application/Mobile/View/User/register.html index f19c715a9..867e8030c 100644 --- a/Application/Mobile/View/User/register.html +++ b/Application/Mobile/View/User/register.html @@ -12,54 +12,40 @@ - + - + + + + +
-