...
|
...
|
@@ -37,6 +37,7 @@ class PersonalcenterController extends WeChatBaseController{ |
|
|
}
|
|
|
return $this -> fetch();
|
|
|
}
|
|
|
//业务员个人中心页
|
|
|
if($my_user_status['status'] == 2){
|
|
|
return $this -> fetch('personalcenter/salesman_center');
|
|
|
}
|
...
|
...
|
@@ -50,27 +51,23 @@ class PersonalcenterController extends WeChatBaseController{ |
|
|
|
|
|
$uid = cmf_get_current_user_id();
|
|
|
$my_user_status = Db::name('my_user') -> where('uid',$uid) -> find();
|
|
|
if($my_user_status['status'] == 1){
|
|
|
$this -> assign('status',1);
|
|
|
}
|
|
|
if($my_user_status['status'] == 5){
|
|
|
$this -> assign('status',5);
|
|
|
}
|
|
|
if($my_user_status['status'] == 6){
|
|
|
$this -> assign('status',6);
|
|
|
if($my_user_status['status'] == 2){
|
|
|
$this -> redirect('Personalcenter/personal_center');
|
|
|
}else{
|
|
|
if($my_user_status['status'] == 1){
|
|
|
$this -> assign('status',1);
|
|
|
}
|
|
|
if($my_user_status['status'] == 5){
|
|
|
$this -> assign('status',5);
|
|
|
}
|
|
|
if($my_user_status['status'] == 6){
|
|
|
$this -> assign('status',6);
|
|
|
}
|
|
|
$weixin = Db::name('user') -> where('id',$uid) -> find();
|
|
|
$this -> assign('weixin',$weixin);
|
|
|
return $this -> fetch();
|
|
|
}
|
|
|
$weixin = Db::name('user') -> where('id',$uid) -> find();
|
|
|
$this -> assign('weixin',$weixin);
|
|
|
return $this -> fetch();
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 业务员个人中心页
|
|
|
*/
|
|
|
public function salesman_center(){
|
|
|
|
|
|
return $this -> fetch();
|
|
|
|
|
|
}
|
|
|
|
...
|
...
|
|