2025-11-14 14:49:38 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace app\api\controller;
|
|
|
|
|
|
|
|
|
|
use app\common\controller\BaseCom;
|
|
|
|
|
use think\Db;
|
|
|
|
|
|
|
|
|
|
class UserCp extends BaseCom
|
|
|
|
|
{
|
2025-11-19 11:07:59 +08:00
|
|
|
//用户CP礼物回赠
|
|
|
|
|
public function cpGiveGift()
|
|
|
|
|
{
|
|
|
|
|
$user_id = input('user_id', 0);
|
|
|
|
|
$gift_id = input('gift_id', 0);
|
|
|
|
|
$reslut = model('GiveGift')->give_gift($this->uid, $user_id, $gift_id, 1,1,1);
|
|
|
|
|
return V($reslut['code'], $reslut['msg'], $reslut['data']);
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-14 14:49:38 +08:00
|
|
|
|
2025-11-14 15:26:04 +08:00
|
|
|
//Cp 空间
|
|
|
|
|
public function cpZone()
|
2025-11-14 14:49:38 +08:00
|
|
|
{
|
2025-11-14 15:26:04 +08:00
|
|
|
$reslut = model('UserCp')->cpZone($this->uid);
|
|
|
|
|
return V($reslut['code'], $reslut['msg'], $reslut['data']);
|
2025-11-14 14:49:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|