'待审核', self::AUDIT_STATUS_SUCCESS => '审核通过', self::AUDIT_STATUS_FAIL => '审核未通过', ]; if (true === $from) { return $desc; } return $desc[$from]; } /** * @notes 获取直播间状态描述 * @param bool $from * @return string|string[] * @author 段誉 * @date 2023/2/15 18:59 */ public static function getLiveStatusDesc($from = true) { $desc = [ self::LIVE_STATUS_WAIT => '未开始', self::LIVE_STATUS_ING => '直播中', self::LIVE_STATUS_END => '已结束', self::LIVE_STATUS_DISABLE => '禁播', self::LIVE_STATUS_STOP => '暂停', self::LIVE_STATUS_ERROR => '异常', self::LIVE_STATUS_EXPIRE => '已过期', ]; if (true === $from) { return $desc; } return $desc[$from]; } }