正在显示
1 个修改的文件
包含
4 行增加
和
10 行删除
@@ -119,26 +119,20 @@ class GoodsdetailsController extends WeChatBaseController{ | @@ -119,26 +119,20 @@ class GoodsdetailsController extends WeChatBaseController{ | ||
119 | $my_user = Db::name('my_user') -> where('uid',$uid) -> find(); | 119 | $my_user = Db::name('my_user') -> where('uid',$uid) -> find(); |
120 | //如果是业务员身份 | 120 | //如果是业务员身份 |
121 | if($my_user['status'] == 2 || $my_user['status'] == 0 || $my_user['status'] == 1 || $my_user['status'] == 5 || $my_user['status'] == 6){ | 121 | if($my_user['status'] == 2 || $my_user['status'] == 0 || $my_user['status'] == 1 || $my_user['status'] == 5 || $my_user['status'] == 6){ |
122 | - $url = "http://xkeasy.w.bronet.cn/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id']; | 122 | + $url = request()->domain()."/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id']; |
123 | } | 123 | } |
124 | //如果是老师身份 | 124 | //如果是老师身份 |
125 | if($my_user['status'] == 3){ | 125 | if($my_user['status'] == 3){ |
126 | - if(empty($goods_id['id'])){ | ||
127 | - $url = "http://xkeasy.w.bronet.cn/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id']."/status/2/id/".$my_user['id']; | ||
128 | - }else{ | ||
129 | - $url = "http://xkeasy.w.bronet.cn/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id']."/status/2/id/".$goods_id['id']; | ||
130 | - } | ||
131 | - | 126 | + $url = request()->domain()."/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id']."/status/".$my_user['status']."/id/".$my_user['id']; |
132 | } | 127 | } |
133 | //学生身份 | 128 | //学生身份 |
134 | if($my_user['status'] == 4){ | 129 | if($my_user['status'] == 4){ |
135 | $teacher_my_user = Db::name('my_user') -> where('id',$my_user['pid']) -> find(); | 130 | $teacher_my_user = Db::name('my_user') -> where('id',$my_user['pid']) -> find(); |
136 | if(empty($goods_id['id'])){ | 131 | if(empty($goods_id['id'])){ |
137 | - $url = "http://xkeasy.w.bronet.cn/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id']."/status/3/id/".$teacher_my_user['id']; | 132 | + $url = request()->domain()."/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id']."/status/3/id/".$teacher_my_user['id']; |
138 | }else{ | 133 | }else{ |
139 | - $url = "http://xkeasy.w.bronet.cn/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id']."/status/3/id/".$goods_id['id']; | 134 | + $url = request()->domain()."/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id']."/status/".$goods_id['status']."/id/".$goods_id['id']; |
140 | } | 135 | } |
141 | - | ||
142 | } | 136 | } |
143 | $this -> assign('url',$url); | 137 | $this -> assign('url',$url); |
144 | return $this -> fetch(); | 138 | return $this -> fetch(); |
-
请 注册 或 登录 后发表评论