From b69ca038561ebeed5f45ff498736b8774623532d Mon Sep 17 00:00:00 2001 From: chenzhi <“chenzhi063@qq.com> Date: Thu, 17 Oct 2019 19:26:29 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Mobile/Controller/SsgController.class.php | 10 ++++++++-- Application/Mobile/View/Ssg/home.html | 2 +- Application/Mobile/View/Ssg/index.html | 3 ++- Application/Mobile/View/Ssg/order.html | 3 +-- 4 files changed, 12 insertions(+), 6 deletions(-) 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 @@
-
+