小储云下单连接提取失败问题

1772891600
63
2025-07-08

有的用户使用提取连接会遇到这个问题

https://v.douyin.com/ulBkn8-13zwI/ 就好比如这个链接,提取后变成了:https://v.douyin.com/ulBkn8

可以替换代码:includes\fun.ajax.php

/**
 * 在字符串内提取出URL
 * 单个!
 */
function URLExtraction($text)
{
    $pattern = '/((?:https?:\/\/|www\.)[a-zA-Z0-9\-._~:\/?#[\]@!$&\'()*+,;=%]+)/i';

    preg_match_all($pattern, $text, $matches);
    if ($matches[0]) {
        return $matches[0][0];
    } else {
        return "";
    }
}

或者也可以买个插件支持一下