装扮调整
This commit is contained in:
@@ -16,7 +16,7 @@ class Decorate extends Model
|
||||
protected $createTime = 'createtime';
|
||||
protected $updateTime = 'updatetime';
|
||||
// 定义字段类型 1头像框 2坐骑 3麦圈 6个人靓号 7房间靓号 8公会靓号
|
||||
public $TypeArray = [1=>'头像框',2=>'坐骑',9=>'聊天气泡'];//,6=>'个人靓号',7=>'房间靓号',8=>'公会靓号',3=>'麦圈'
|
||||
public $TypeArray = [1=>'头像框',2=>'坐骑',9=>'聊天气泡',6=>'个人靓号',7=>'房间靓号',8=>'公会靓号',3=>'麦圈',10=>'CP特效',11=>'CP装扮'];
|
||||
protected $FromType = [1=>'购买',2=>'后台赠送',3=>'礼盒开奖',4=>'好友赠送',5=>'首充赠送',6=>'天降好礼获得',7=>'财富等级特权赠送',8=>'新人充值好礼',9=>'爵位购买赠送'];
|
||||
public function __construct($data = [])
|
||||
{
|
||||
@@ -27,6 +27,7 @@ class Decorate extends Model
|
||||
//获取装扮类型
|
||||
public function get_type_list($have_hot = 0)
|
||||
{
|
||||
$no_show_ids = [6,7,8,3,10,11];
|
||||
$label = $this->TypeArray;
|
||||
if ($have_hot) {
|
||||
$label = [100 => '热门'] + array_filter($this->TypeArray, fn($key) => $key != 100, ARRAY_FILTER_USE_KEY);
|
||||
@@ -34,6 +35,9 @@ class Decorate extends Model
|
||||
$data = [];
|
||||
$i = 0;
|
||||
foreach ($label as $k => $v) {
|
||||
if (in_array($k, $no_show_ids)) {
|
||||
continue;
|
||||
}
|
||||
$data[$i]['id'] = $k;
|
||||
$data[$i]['name'] = $v;
|
||||
++$i;
|
||||
|
||||
Reference in New Issue
Block a user