作者 xiaohu thinkpad

我的订单详情标题

... ... @@ -110,12 +110,12 @@ class IndexController extends HomeBaseController
->find();
if ($re) {
$dataup['id'] = $re['id'];
session('user.id', $dataup['id']);
// session('user.id', $dataup['id']);
$res = Db::name('user')->update($dataup);
if ($res) {
return json(['code' => '1', 'msg' => '保存成功']);
} else {
return json(['code' => '0', 'msg' => '保存失败']);
return json(['code' => '1', 'msg' => '报名信息更新成功']);
}
} else {
return json(['code' => '0', 'msg' => '保存失败']);
... ... @@ -160,6 +160,13 @@ class IndexController extends HomeBaseController
}
}
//支付成功 ajax
public function pay_success()
{
return $this->fetch();
}
//学员手册
public function student_shouce()
... ...
... ... @@ -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");
... ...