'活动不存在或未开始', self::LOTTERY_NOT_IN_TIME => '不在抽奖时间内', self::LOTTERY_USER_NOT_QUALIFIED => '用户不符合参与条件', self::LOTTERY_NO_CHANCE => '没有抽奖机会', self::LOTTERY_REACH_LIMIT => '已达到参与次数上限', self::LOTTERY_ORDER_ALREADY_DRAWN => '该订单已参与过抽奖', // 用户相关 self::USER_NOT_LOGIN => '请先登录', self::USER_ACTIVITY_NOT_FOUND => '活动不存在', self::USER_WIN_RECORD_NOT_FOUND => '中奖记录不存在', self::USER_PRIZE_ALREADY_PROCESSED => '该奖品已处理,无法修改地址', // 商品折扣相关 self::GOODS_NO_DISCOUNT => '该商品当前没有参与折扣活动', ]; return $messages[$code] ?? '未知错误'; } }