diff --git a/application/common/model/Redpacket.php b/application/common/model/Redpacket.php index 93a7914..219d281 100644 --- a/application/common/model/Redpacket.php +++ b/application/common/model/Redpacket.php @@ -67,9 +67,9 @@ class Redpacket extends Model 'change_value' => $data['total_amount'], 'room_id' => $data['room_id'], 'money_type' => $data['coin_type'], - 'change_type' => $coinField == self::COIN_GOLD ? 32 : 29, + 'change_type' => $data['coin_type'] == self::COIN_GOLD ? 32 : 29, 'from_id' => $data['room_id'], - 'remarks' => $coinField == self::COIN_GOLD ? '金币(发红包)' : '钻石(发红包)', + 'remarks' => $data['coin_type'] == self::COIN_GOLD ? '金币(发红包)' : '钻石(发红包)', 'createtime' => time() ];