修复:添加文创空间进入按钮判断 - 未成为过某个文创等级的经销商则不显示
This commit is contained in:
parent
bca8e5a48c
commit
9cc7e24746
|
|
@ -4,6 +4,7 @@ namespace Yunshop\Decorate\common\services\component;
|
|||
|
||||
use app\backend\modules\member\models\Member;
|
||||
use Yunshop\CollectionRoom\models\CollectionRoomModel;
|
||||
use Yunshop\TeamDividend\models\TeamDividendLevelModel;
|
||||
use Yunshop\TeamDividend\models\Uplog;
|
||||
use Yunshop\WeightValue\models\WeightValue;
|
||||
|
||||
|
|
@ -51,7 +52,13 @@ class Button{
|
|||
->value('id');
|
||||
if($isHas <= 0) unset($list[$handleListIndex]);
|
||||
}
|
||||
|
||||
}
|
||||
if(strpos($h5link,'/member/weight_value_home') !== false && strpos($h5link,'content_type=cultural_space') !== false){
|
||||
// 获取全部文创经销商等级
|
||||
$allLvId = TeamDividendLevelModel::uniacid()->where('level_type',1)->pluck('id')->toArray();
|
||||
// 获取等级id
|
||||
$isHas = (int)Uplog::uniacid()->where('uid',$uid)->whereIn('after_level_id',$allLvId)->count();
|
||||
if($isHas <= 0) unset($list[$handleListIndex]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue