交友相关

This commit is contained in:
2025-08-16 11:29:29 +08:00
parent f90a9d11df
commit 9566409a0c
5 changed files with 102 additions and 20 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace app\api\model;
use think\Model;
class Friend extends Model
{
//房间内送礼
/*
* @param $uid 用户id
* @param $to_uid 接收用户id组
* @param $gift_id 礼物id
* @param $gift_num 礼物数量
* @param $from_type 来源 1聊天送礼物 2房间语聊送礼 3直播送礼 4动态打赏 5系统任务 6-cp房间送礼
* @param $type 1金币购买 2送背包礼物
* @param $room_id 房间id
* @param $pit_number 坑位
*/
public function room_give_gift($uid, $to_uid, $gift_id, $gift_num, $from_type, $type, $room_id, $pit_number)
{
$res = model('GiveGift')->give_gift($uid, $to_uid, $gift_id, $gift_num,$from_type,$type, $room_id,$pit_number);
if($res['code'] != 1){
return $res;
}
//送礼成功后续操作
//
}
}