正在显示
1 个修改的文件
包含
16 行增加
和
19 行删除
@@ -37,6 +37,7 @@ class PersonalcenterController extends WeChatBaseController{ | @@ -37,6 +37,7 @@ class PersonalcenterController extends WeChatBaseController{ | ||
37 | } | 37 | } |
38 | return $this -> fetch(); | 38 | return $this -> fetch(); |
39 | } | 39 | } |
40 | + //业务员个人中心页 | ||
40 | if($my_user_status['status'] == 2){ | 41 | if($my_user_status['status'] == 2){ |
41 | return $this -> fetch('personalcenter/salesman_center'); | 42 | return $this -> fetch('personalcenter/salesman_center'); |
42 | } | 43 | } |
@@ -50,27 +51,23 @@ class PersonalcenterController extends WeChatBaseController{ | @@ -50,27 +51,23 @@ class PersonalcenterController extends WeChatBaseController{ | ||
50 | 51 | ||
51 | $uid = cmf_get_current_user_id(); | 52 | $uid = cmf_get_current_user_id(); |
52 | $my_user_status = Db::name('my_user') -> where('uid',$uid) -> find(); | 53 | $my_user_status = Db::name('my_user') -> where('uid',$uid) -> find(); |
53 | - if($my_user_status['status'] == 1){ | ||
54 | - $this -> assign('status',1); | ||
55 | - } | ||
56 | - if($my_user_status['status'] == 5){ | ||
57 | - $this -> assign('status',5); | ||
58 | - } | ||
59 | - if($my_user_status['status'] == 6){ | ||
60 | - $this -> assign('status',6); | 54 | + if($my_user_status['status'] == 2){ |
55 | + $this -> redirect('Personalcenter/personal_center'); | ||
56 | + }else{ | ||
57 | + if($my_user_status['status'] == 1){ | ||
58 | + $this -> assign('status',1); | ||
59 | + } | ||
60 | + if($my_user_status['status'] == 5){ | ||
61 | + $this -> assign('status',5); | ||
62 | + } | ||
63 | + if($my_user_status['status'] == 6){ | ||
64 | + $this -> assign('status',6); | ||
65 | + } | ||
66 | + $weixin = Db::name('user') -> where('id',$uid) -> find(); | ||
67 | + $this -> assign('weixin',$weixin); | ||
68 | + return $this -> fetch(); | ||
61 | } | 69 | } |
62 | - $weixin = Db::name('user') -> where('id',$uid) -> find(); | ||
63 | - $this -> assign('weixin',$weixin); | ||
64 | - return $this -> fetch(); | ||
65 | - | ||
66 | - } | ||
67 | 70 | ||
68 | - /** | ||
69 | - * 业务员个人中心页 | ||
70 | - */ | ||
71 | - public function salesman_center(){ | ||
72 | - | ||
73 | - return $this -> fetch(); | ||
74 | 71 | ||
75 | } | 72 | } |
76 | 73 |
-
请 注册 或 登录 后发表评论