...
|
...
|
@@ -119,26 +119,20 @@ class GoodsdetailsController extends WeChatBaseController{ |
|
|
$my_user = Db::name('my_user') -> where('uid',$uid) -> find();
|
|
|
//如果是业务员身份
|
|
|
if($my_user['status'] == 2 || $my_user['status'] == 0 || $my_user['status'] == 1 || $my_user['status'] == 5 || $my_user['status'] == 6){
|
|
|
$url = "http://xkeasy.w.bronet.cn/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id'];
|
|
|
$url = request()->domain()."/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id'];
|
|
|
}
|
|
|
//如果是老师身份
|
|
|
if($my_user['status'] == 3){
|
|
|
if(empty($goods_id['id'])){
|
|
|
$url = "http://xkeasy.w.bronet.cn/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id']."/status/2/id/".$my_user['id'];
|
|
|
}else{
|
|
|
$url = "http://xkeasy.w.bronet.cn/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id']."/status/2/id/".$goods_id['id'];
|
|
|
}
|
|
|
|
|
|
$url = request()->domain()."/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id']."/status/".$my_user['status']."/id/".$my_user['id'];
|
|
|
}
|
|
|
//学生身份
|
|
|
if($my_user['status'] == 4){
|
|
|
$teacher_my_user = Db::name('my_user') -> where('id',$my_user['pid']) -> find();
|
|
|
if(empty($goods_id['id'])){
|
|
|
$url = "http://xkeasy.w.bronet.cn/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id']."/status/3/id/".$teacher_my_user['id'];
|
|
|
$url = request()->domain()."/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id']."/status/3/id/".$teacher_my_user['id'];
|
|
|
}else{
|
|
|
$url = "http://xkeasy.w.bronet.cn/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id']."/status/3/id/".$goods_id['id'];
|
|
|
$url = request()->domain()."/portal/goodsdetails/goods_details/goods_id/".$goods_id['goods_id']."/status/".$goods_id['status']."/id/".$goods_id['id'];
|
|
|
}
|
|
|
|
|
|
}
|
|
|
$this -> assign('url',$url);
|
|
|
return $this -> fetch();
|
...
|
...
|
|