...
|
...
|
@@ -25,9 +25,17 @@ class LoginController extends HomeBaseController |
|
|
{
|
|
|
//session('user.id','10');
|
|
|
$ress = Db::name('user')->where(['openid'=>session('openid')])->find();
|
|
|
if($ress && $ress['mobile'] != ''){
|
|
|
session('user.id',$ress['id']);
|
|
|
return redirect($this->request->root() . '/user/profile/percenter');
|
|
|
if($ress && $ress['mobile'] != '' ){
|
|
|
if($ress['user_type'] == '2'){
|
|
|
if($ress['student_type'] == '1'){
|
|
|
session('user.id',$ress['id']);
|
|
|
return redirect($this->request->root() . '/user/profile/percenter');
|
|
|
}
|
|
|
}else{
|
|
|
session('user.id',$ress['id']);
|
|
|
return redirect($this->request->root() . '/user/profile/percenter');
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
$redirect = $this->request->post("redirect");
|
...
|
...
|
|