趣味礼物排序
This commit is contained in:
@@ -135,8 +135,11 @@ class Gift extends Model
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//爆币
|
//爆币
|
||||||
$pool_gift_id = db::name('bb_lottery_config')->where(['key' => 'pool_gift_id'])->value('value');
|
$pool_gift_id_arr[] = db::name('bb_lottery_config')->where(['key' => 'pool_gift_id'])->value('value');
|
||||||
if($pool_gift_id == $v['gift_id']){
|
$pool_gift_id_arr[] = db::name('bb_lottery_config')->where(['key' => 'pool_gift_id_5'])->value('value');
|
||||||
|
$pool_gift_id_arr[] = db::name('bb_lottery_config')->where(['key' => 'pool_gift_id_10'])->value('value');
|
||||||
|
|
||||||
|
if(in_array($v['gift_id'],$pool_gift_id_arr)){
|
||||||
$v['gift_bag_name'] = "幸运币活动";
|
$v['gift_bag_name'] = "幸运币活动";
|
||||||
$v['rule'] = "幸运羽币";
|
$v['rule'] = "幸运羽币";
|
||||||
$v['rule_url'] = get_system_config_value('web_site')."/api/Page/page_show?id=35";
|
$v['rule_url'] = get_system_config_value('web_site')."/api/Page/page_show?id=35";
|
||||||
|
|||||||
Reference in New Issue
Block a user