Function queryShortURL

  • 查询长链接是否存在对应短链接,仅支持子域名及白名单中的域名。

    Parameters

    • longURL: string

      (string):url string

    Returns string

    shortURL string

    Example


    import * as url from 'url'
    const shortURL=url.queryShortURL("https://xxx.com")