'进行中', self::TEAM_STATUS_STOP => '已停止', ]; if ($type === true){ return $desc; } return $desc[$type] ?? ''; } /** * @Notes: 审核状态 * @Author: 张无忌 * @param $type * @return array|mixed|string */ public static function getTeamAuditDesc($type) { $desc = [ self::TEAM_AUDIT_WAIT => '待审核', self::TEAM_AUDIT_SUCCESS => '审核通过', self::TEAM_AUDIT_REFUSE => '审核拒绝', ]; if ($type === true){ return $desc; } return $desc[$type] ?? ''; } /** * @Notes: 拼团状态 * @Author: 张无忌 * @param $type * @return array|mixed|string */ public static function getStatusDesc($type) { $desc = [ self::TEAM_STATUS_CONDUCT => '拼购中', self::TEAM_STATUS_SUCCESS => '拼团成功', self::TEAM_STATUS_FAIL => '拼团失败', ]; if ($type === true){ return $desc; } return $desc[$type] ?? ''; } }