签约房-装扮-降身卡功能开发-个人装扮
This commit is contained in:
@@ -1041,6 +1041,9 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model
|
|||||||
*/
|
*/
|
||||||
public function xlh_draw_gift($user_id, $num, $room_id)
|
public function xlh_draw_gift($user_id, $num, $room_id)
|
||||||
{
|
{
|
||||||
|
if(empty($room_id)){
|
||||||
|
return ['code' => 0, 'msg' => '房间ID不能为空', 'data' => null];
|
||||||
|
}
|
||||||
$gift_bag_id = 13;
|
$gift_bag_id = 13;
|
||||||
// 1. 获取并缓存盲盒配置
|
// 1. 获取并缓存盲盒配置
|
||||||
$ext = $this->getCachedGiftBag($gift_bag_id); //获取转盘信息
|
$ext = $this->getCachedGiftBag($gift_bag_id); //获取转盘信息
|
||||||
|
|||||||
@@ -299,7 +299,7 @@ class Decorate extends Model
|
|||||||
if($type == 12){
|
if($type == 12){
|
||||||
$reslut = db::name('vs_user_decorate')
|
$reslut = db::name('vs_user_decorate')
|
||||||
->alias('ud')->join('vs_decorate d', 'ud.did = d.did')
|
->alias('ud')->join('vs_decorate d', 'ud.did = d.did')
|
||||||
->field('ud.udid,ud.user_id,ud.is_using,ud.end_time,ud.is_perpetual,ud.special_num,d.title,d.base_image,d.play_image,d.type,ud.num')
|
->field('ud.udid,ud.user_id,ud.is_using,ud.end_time,ud.is_perpetual,ud.special_num,d.title,d.base_image,d.play_image,d.type,ud.num,d.ext_value')
|
||||||
->where('ud.user_id', $uid)
|
->where('ud.user_id', $uid)
|
||||||
->where('ud.type', $type)
|
->where('ud.type', $type)
|
||||||
->where(['ud.num'=>[">",0]])
|
->where(['ud.num'=>[">",0]])
|
||||||
|
|||||||
Reference in New Issue
Block a user