|
@@ -965,7 +965,7 @@ class Supplier extends Base
|
|
|
$v['transmit_num'] = numTransform($v['transmit_num']);
|
|
|
$v['comment_num'] = SupplierComment::getCommentNum($v['goods_id']);
|
|
|
$v['is_praise'] = PlatformLike::checkTags($this->user_id,$v['goods_id'],7);
|
|
|
- $v['is_normal'] = CheckPower::checkModulesPower($v['goods_id'],0,$this->request->controller());
|
|
|
+ $v['is_normal'] = CheckPower::checkModulesPower($v['goods_id'],0,'supplier_goods');
|
|
|
$v['switch_open'] = PlatformSwitch::checkSwitch($this->user_id,$v['goods_id'],11);
|
|
|
$v['collect_num'] = UserCollect::getCollectNum(9,$v['goods_id']);
|
|
|
$v['praise_num'] = PlatformLike::getPraiseNum($v['goods_id'],7);
|
|
@@ -1085,7 +1085,7 @@ class Supplier extends Base
|
|
|
array_walk($list,function (&$v){
|
|
|
$v['read_num'] = numTransform($v['read_num']);
|
|
|
$v['cover_arr'] = $v['cover']? explode('|',trim($v['cover'],'|')):null;
|
|
|
- $v['is_normal'] = CheckPower::checkModulesPower($v['goods_id'],0,$this->request->controller());
|
|
|
+ $v['is_normal'] = CheckPower::checkModulesPower($v['goods_id'],0,'supplier_goods');
|
|
|
});
|
|
|
$total_num = PlatformLike::where($sel_where)->alias('p')
|
|
|
->leftJoin('SupplierGoods g', 'g.id = p.like_id')
|
|
@@ -1139,7 +1139,7 @@ class Supplier extends Base
|
|
|
$v['self_name'] = $this->user_info['name'];
|
|
|
$v['read_num'] = numTransform($v['read_num']);
|
|
|
$v['cover_arr'] = $v['cover']? explode('|',trim($v['cover'],'|')):null;
|
|
|
- $v['is_normal'] = CheckPower::checkModulesPower($v['goods_id'],0,$this->request->controller());
|
|
|
+ $v['is_normal'] = CheckPower::checkModulesPower($v['goods_id'],0,'supplier_goods');
|
|
|
});
|
|
|
$total_num = PlatformLike::where($sel_where) ->alias('p')->leftJoin('SupplierComment c', 'c.id = p.like_id')
|
|
|
->leftJoin('SupplierGoods g', 'g.id = c.goods_id')
|