|
@@ -1707,6 +1707,7 @@ class Party extends Common
|
|
|
|
|
|
$data["createtime"] = time();
|
|
|
$res5 = $giftuserpartyModel->allowField(true)->save($data);
|
|
|
+
|
|
|
|
|
|
|
|
|
if($getValue > 0){
|
|
@@ -1870,6 +1871,43 @@ class Party extends Common
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ private function bigGiftNotice($giftUserParty){
|
|
|
+ if ($giftUserParty->party_id > 0) {
|
|
|
+
|
|
|
+ $bigGiftNotice = config("site.bigGiftNotice");
|
|
|
+ $partyInfo = $giftUserParty->party;
|
|
|
+ $money = $giftUserParty->value;
|
|
|
+
|
|
|
+
|
|
|
+ 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'],
|
|
|
+ ]
|
|
|
+ ]
|
|
|
+ ];
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
public function getPartyGiftLog(){
|
|
|
$party_id = input('party_id',0);
|