|
@@ -13,6 +13,7 @@ use think\exception\PDOException;
|
|
use think\exception\ValidateException;
|
|
use think\exception\ValidateException;
|
|
use think\Request;
|
|
use think\Request;
|
|
use app\common\service\RoomService;
|
|
use app\common\service\RoomService;
|
|
|
|
+use app\common\library\GatewayworkerTools;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 派对信息接口
|
|
* 派对信息接口
|
|
@@ -1707,7 +1708,7 @@ class Party extends Common
|
|
|
|
|
|
$data["createtime"] = time();
|
|
$data["createtime"] = time();
|
|
$res5 = $giftuserpartyModel->allowField(true)->save($data);
|
|
$res5 = $giftuserpartyModel->allowField(true)->save($data);
|
|
- //$this->bigGiftNotice($giftuserpartyModel);
|
|
|
|
|
|
+ $this->bigGiftNotice($giftuserpartyModel);
|
|
|
|
|
|
// 添加赠送用户余额
|
|
// 添加赠送用户余额
|
|
if($getValue > 0){
|
|
if($getValue > 0){
|
|
@@ -1876,34 +1877,12 @@ class Party extends Common
|
|
if ($giftUserParty->party_id > 0) {
|
|
if ($giftUserParty->party_id > 0) {
|
|
|
|
|
|
$bigGiftNotice = config("site.bigGiftNotice");
|
|
$bigGiftNotice = config("site.bigGiftNotice");
|
|
- $partyInfo = $giftUserParty->party;
|
|
|
|
$money = $giftUserParty->value;
|
|
$money = $giftUserParty->value;
|
|
|
|
|
|
-
|
|
|
|
if ($money >= $bigGiftNotice) {
|
|
if ($money >= $bigGiftNotice) {
|
|
-
|
|
|
|
- $messageData = [
|
|
|
|
- 'type' => 'bigGiftNotice',
|
|
|
|
- 'data' => [
|
|
|
|
- 'party_info' => [
|
|
|
|
- 'party_id' => $partyInfo['id'],
|
|
|
|
- 'room_type' => $partyInfo['room_type'],
|
|
|
|
- 'party_name' => $partyInfo['party_name']
|
|
|
|
- ],
|
|
|
|
- 'notice_info' => [
|
|
|
|
- 'sender' => $giftUserParty->user->nickname,
|
|
|
|
- 'receiver' => $giftUserParty->toUser->nickname,
|
|
|
|
- 'gift_num' => $giftUserParty['number'],
|
|
|
|
- 'gift_name' => $giftUserParty['gift_name'],
|
|
|
|
- 'gift_image' => $giftUserParty['gift_gif_image'],
|
|
|
|
- 'value' => $giftUserParty['value'],
|
|
|
|
- ]
|
|
|
|
- ]
|
|
|
|
- ];
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ $partyInfo = $giftUserParty->party;
|
|
|
|
+ $notice = new GatewayworkerTools();
|
|
|
|
+ $notice->sendBigGiftInParty($giftUserParty->user->nickname,$giftUserParty->toUser->nickname,$partyInfo,$giftUserParty);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|