...
|
...
|
@@ -86,15 +86,15 @@ if (!function_exists('cdnurl')) { |
|
|
/*加入时间戳防盗链*/
|
|
|
$time = time()+3600;
|
|
|
$T=dechex($time);
|
|
|
$key="9388f4ba63b89bba5b9b84aa70a92eaac099d39b";
|
|
|
$key="cbbb7d9b499b7eb9839a57abe1bac1b85ea84ba9";
|
|
|
$S=$key.$url.$T;
|
|
|
$token = md5($S);
|
|
|
$sign =strtolower($token);
|
|
|
|
|
|
if (!preg_match($regex, $url)){
|
|
|
$url=$url.'?sign='.$sign.'&t='.$T;
|
|
|
}else{
|
|
|
$url=\think\Config::get('upload.cdnurl').$url.'?sign='.$sign.'&t='.$T;
|
|
|
}else{
|
|
|
$url=$url.'?sign='.$sign.'&t='.$T;
|
|
|
}
|
|
|
|
|
|
if ($domain && !preg_match($regex, $url)) {
|
...
|
...
|
|