30 lines
861 B
PHP
30 lines
861 B
PHP
<?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;
|
|
}
|
|
//送礼成功后续操作
|
|
//
|
|
|
|
}
|
|
} |