Authored by wuxiao

http://jira.yoho.cn:8888/browse/YH-5507

改成提示“红包ID已存在”
... ... @@ -36,7 +36,7 @@ class RoomRedbag extends \yii\db\ActiveRecord
return [
[['room_id', 'coupon_id', 'type_id', 'stock', 'effect_time', 'invalid_time', 'create_time', 'update_time'], 'integer'],
[['coupon_name'], 'string', 'max' => 100],
[['room_id', 'coupon_id'], 'unique', 'targetAttribute' => ['room_id', 'coupon_id'], 'message' => 'The combination of 房间号 and 优惠券ID has already been taken.'],
[['room_id', 'coupon_id'], 'unique', 'targetAttribute' => ['room_id', 'coupon_id'], 'comboNotUnique' => '红包ID已存在'],
];
}
... ...