diff --git a/Application/Mobile/Controller/SsgController.class.php b/Application/Mobile/Controller/SsgController.class.php index 3ca58a403..dc7e940f8 100644 --- a/Application/Mobile/Controller/SsgController.class.php +++ b/Application/Mobile/Controller/SsgController.class.php @@ -152,7 +152,9 @@ class SsgController extends BaseController { $this -> set_message(1017, "fail", "添加失败"); } //添加自动登录 - $_SESSION['user_id'] = $res; + $userApi = new MemberApi(); + $user_id = $userApi->login($account, $password,1); + $this -> set_message(1, "success", "添加成功"); } @@ -166,8 +168,12 @@ class SsgController extends BaseController { if(empty($res)){ $this -> set_message(1017, "fail", "添加失败"); } + + //添加自动登录 - $_SESSION['user_id'] = $res; + $userApi = new MemberApi(); + $user_id = $userApi->login($account, $password,1); + $this -> set_message(1, "success", "添加成功"); # code... } diff --git a/Application/Mobile/View/Ssg/home.html b/Application/Mobile/View/Ssg/home.html index 4057ecc8a..96ef21aa7 100644 --- a/Application/Mobile/View/Ssg/home.html +++ b/Application/Mobile/View/Ssg/home.html @@ -57,7 +57,7 @@