|
@@ -641,15 +641,15 @@ class Live extends Common
|
|
// 扣除当前用户钻石余额
|
|
// 扣除当前用户钻石余额
|
|
$where = [];
|
|
$where = [];
|
|
$where["id"] = $this->auth->id;
|
|
$where["id"] = $this->auth->id;
|
|
- $res1 = $userModel->where($where)->setDec("jewel",$giftValue);
|
|
|
|
|
|
+// $res1 = $userModel->where($where)->setDec("jewel",$giftValue);
|
|
// 添加当前用户钻石流水记录
|
|
// 添加当前用户钻石流水记录
|
|
- $res2 = $userjewellogModel->addUserJewelLog($this->auth->id, $giftValue, "-", $userInfo["jewel"], "赠送礼物:'" . $giftInfo["name"] . "',扣除" . $giftValue . "钻石!", 3);
|
|
|
|
|
|
+// $res2 = $userjewellogModel->addUserJewelLog($this->auth->id, $giftValue, "-", $userInfo["jewel"], "赠送礼物:'" . $giftInfo["name"] . "',扣除" . $giftValue . "钻石!", 3);
|
|
// 添加赠送用户钻石余额
|
|
// 添加赠送用户钻石余额
|
|
$where = [];
|
|
$where = [];
|
|
$where["id"] = $user_id;
|
|
$where["id"] = $user_id;
|
|
- $res3 = $userModel->where($where)->setInc("jewel",$giftValue);
|
|
|
|
|
|
+// $res3 = $userModel->where($where)->setInc("jewel",$giftValue);
|
|
// 添加赠送用户钻石流水记录
|
|
// 添加赠送用户钻石流水记录
|
|
- $res4 = $userjewellogModel->addUserJewelLog($user_id,$giftValue,"+",$touserInfo["jewel"],"获赠礼物:'".$giftInfo["name"]."',增加".$giftValue."钻石!",9);
|
|
|
|
|
|
+// $res4 = $userjewellogModel->addUserJewelLog($user_id,$giftValue,"+",$touserInfo["jewel"],"获赠礼物:'".$giftInfo["name"]."',增加".$giftValue."钻石!",9);
|
|
// 添加礼物赠送记录表
|
|
// 添加礼物赠送记录表
|
|
$data = [];
|
|
$data = [];
|
|
$data["user_id"] = $this->auth->id;
|
|
$data["user_id"] = $this->auth->id;
|