|
|
|
@ -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...
|
|
|
|
|
}
|
|
|
|
|