调整装扮列表

This commit is contained in:
2026-01-03 18:51:30 +08:00
parent 2865e800e6
commit 0aa351cd63

View File

@@ -95,13 +95,15 @@ class Decorate extends Model
$v['base_image'] = localpath_to_netpath($v['base_image']);
$v['play_image'] = localpath_to_netpath($v['play_image']);
$v['price'] = (int)$v['price'];
if(isset($v['discount']) && ($v['discount']<=0 || $v['discount']>=10)){
if(isset($v['discount'])){
if($v['discount']<=0 || $v['discount']>=10){
$v['discount'] = 0;
$v['discount_str'] = "无折扣";
}else{
$v['discount_str'] = $v['discount']."";
}
}
}
return ['code' => 1, 'msg' => '获取成功', 'data' => $list];
}
// 获取礼物详情