6 Commits
Author SHA1 Message Date
net909 268328b2ac 修复Zepp邮箱登录 2025-09-29 17:46:09 +08:00
net909 bc64066301 修复步数修改工具 2025-09-26 11:33:38 +08:00
net909 f5a6c11dda 修复短视频解析工具 2025-09-20 17:10:47 +08:00
net909 ad228a550b 更新CDN地址 2025-08-06 16:11:29 +08:00
net909 affb5a3827 更新图床工具 2025-07-14 12:45:47 +08:00
net909 a449674739 修复自定义在线机型 2024-12-30 22:27:59 +08:00
61 changed files with 2107 additions and 309 deletions
+19
View File
@@ -143,6 +143,25 @@ function get_curl($url, $post=0, $referer=0, $cookie=0, $header=0, $ua=0, $nobod
return $ret;
}
function get_location_url($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
$httpheader[] = "Accept: */*";
$httpheader[] = "Accept-Encoding: gzip,deflate,sdch";
$httpheader[] = "Accept-Language: zh-CN,zh;q=0.8";
$httpheader[] = "Connection: close";
curl_setopt($ch, CURLOPT_HTTPHEADER, $httpheader);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36");
curl_setopt($ch, CURLOPT_ENCODING, "gzip");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_exec($ch);
$location = curl_getinfo($ch, CURLINFO_REDIRECT_URL);
curl_close($ch);
return $location;
}
function jsonp_decode($jsonp, $assoc = false)
{
$jsonp = trim($jsonp);
+3
View File
@@ -211,6 +211,9 @@ class Auth extends Base
case 'qqid':
return ['1','https://id.qq.com/index.html' ,'我的QQ中心'];
break;
case 'vip':
return ['18','https://club.vip.qq.com/onlinestatus/set' ,'QQ会员'];
break;
default:
return null;
break;
+10 -7
View File
@@ -189,18 +189,21 @@ class QQTool{
public function set_online_status($model, $desc, $imei){
$pt4_token = getSubstr($this->cookie, 'pt4_token=', ';');
$referer = 'https://club.vip.qq.com/onlinestatus/set?_wv=67109895&_wvx=10&_proxy=1&src=2';
$ua = 'Mozilla/5.0 (Linux; Android 12; IN2010 Build/RKQ1.211119.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/97.0.4692.98 Mobile Safari/537.36 V1_AND_SQ_8.8.68_2538_YYB_D A_8086800 QQ/8.8.88 NetType/4G';
$data = json_encode(['13031'=>['req'=>['sModel'=>$model, 'iAppType'=>3, 'sIMei'=>$imei, 'sVer'=>'8.8.88', 'sManu'=>'', 'lUin'=>intval($this->uin), 'bShowInfo'=>true, 'sDesc'=>$desc, 'sModelShow'=> $model]]]);
$url = 'https://proxy.vac.qq.com/cgi-bin/srfentry.fcgi?ts='.time().'000&g_tk='.$this->gtk.'&data='.rawurlencode($data).'&pt4_token='.urlencode($pt4_token);
$data = get_curl($url, 0, 'https://proxy.vac.qq.com/', $this->cookie, 0, $ua);
$param = ['servicesName'=>'VIP.CustomOnlineStatusServer.CustomOnlineStatusObj', 'cmd'=>'SetCustomOnlineStatus', 'args'=>[['sModel'=>$model, 'iAppType'=>3, 'sIMei'=>$imei, 'sVer'=>'8.8.88', 'sManu'=>'', 'lUin'=>intval($this->uin), 'bShowInfo'=>true, 'sDesc'=>$desc, 'sModelShow'=> $model]]];
$url = 'https://club.vip.qq.com/srf-cgi-node?srfname=VIP.CustomOnlineStatusServer.CustomOnlineStatusObj.SetCustomOnlineStatus&ts='.time().'000&daid=18&g_tk='.$this->gtk.'&pt4_token='.urlencode($pt4_token);
$data = get_curl($url, json_encode($param), $referer, $this->cookie, 0, $ua, 0, ['Content-Type: application/json']);
$arr = json_decode($data, true);
if(!$arr){
throw new Exception('修改在线状态失败');
}elseif(isset($arr['ecode']) && $arr['ecode']==0){
if(isset($arr['13031']['ret']) && $arr['13031']['ret']==0){
throw new Exception('修改在线状态失败,返回数据解析失败');
}elseif(isset($arr['ret']) && $arr['ret']==0){
if(isset($arr['data']['rsp']['iRet']) && $arr['data']['rsp']['iRet']==0){
return true;
}elseif(isset($arr['data']['rsp']['sMsg'])){
throw new Exception('修改在线状态失败,'.$arr['data']['rsp']['sMsg']);
}else{
throw new Exception('修改在线状态失败,'.$arr['13031']['msg']);
throw new Exception('修改在线状态失败,'.$data);
}
}else{
throw new Exception('修改在线状态失败,'.$data);
+1 -1
View File
@@ -18,7 +18,7 @@ class ViewOutput
{
View::assign('islogin', $request->islogin);
View::assign('user', $request->user);
View::assign('cdn_cdnjs', config_get('cdn_cdnjs', '//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/'));
View::assign('cdn_cdnjs', config_get('cdn_cdnjs', 'https://s4.zstatic.net/ajax/libs/'));
View::assign('cdn_npm', config_get('cdn_npm', 'https://unpkg.com/'));
View::config(['view_path' => template_path_get()]);
return $next($request)->header([
Generated
+1015
View File
@@ -0,0 +1,1015 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "90b52d33a495d2606004dc98c6c983ae",
"packages": [
{
"name": "cccyun/think-captcha",
"version": "3.0.11",
"source": {
"type": "git",
"url": "https://github.com/netcccyun/think-captcha.git",
"reference": "40012811bf27b41011b1b60bcfadf16ad339931c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/netcccyun/think-captcha/zipball/40012811bf27b41011b1b60bcfadf16ad339931c",
"reference": "40012811bf27b41011b1b60bcfadf16ad339931c",
"shasum": ""
},
"require": {
"topthink/framework": "^6.0|^8.0"
},
"type": "library",
"extra": {
"think": {
"config": {
"captcha": "src/config.php"
},
"services": [
"think\\captcha\\CaptchaService"
]
}
},
"autoload": {
"files": [
"src/helper.php"
],
"psr-4": {
"think\\captcha\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "yunwuxin",
"email": "[email protected]"
}
],
"description": "captcha package for thinkphp",
"support": {
"source": "https://github.com/netcccyun/think-captcha/tree/3.0.11"
},
"time": "2025-04-26T08:37:18+00:00"
},
{
"name": "khanamiryan/qrcode-detector-decoder",
"version": "1.0.5.2",
"source": {
"type": "git",
"url": "https://github.com/khanamiryan/php-qrcode-detector-decoder.git",
"reference": "04fdd58d86a387065f707dc6d3cc304c719910c1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/zipball/04fdd58d86a387065f707dc6d3cc304c719910c1",
"reference": "04fdd58d86a387065f707dc6d3cc304c719910c1",
"shasum": ""
},
"require": {
"php": ">=5.6"
},
"require-dev": {
"phpunit/phpunit": "^5.7 | ^7.5 | ^8.0 | ^9.0"
},
"type": "library",
"autoload": {
"files": [
"lib/Common/customFunctions.php"
],
"psr-4": {
"Zxing\\": "lib/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT",
"Apache-2.0"
],
"authors": [
{
"name": "Ashot Khanamiryan",
"email": "[email protected]",
"homepage": "https://github.com/khanamiryan",
"role": "Developer"
}
],
"description": "QR code decoder / reader",
"homepage": "https://github.com/khanamiryan/php-qrcode-detector-decoder/",
"keywords": [
"barcode",
"qr",
"zxing"
],
"support": {
"issues": "https://github.com/khanamiryan/php-qrcode-detector-decoder/issues",
"source": "https://github.com/khanamiryan/php-qrcode-detector-decoder/tree/1.0.5.2"
},
"time": "2021-07-13T18:46:38+00:00"
},
{
"name": "psr/container",
"version": "1.1.2",
"source": {
"type": "git",
"url": "https://github.com/php-fig/container.git",
"reference": "513e0666f7216c7459170d56df27dfcefe1689ea"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea",
"reference": "513e0666f7216c7459170d56df27dfcefe1689ea",
"shasum": ""
},
"require": {
"php": ">=7.4.0"
},
"type": "library",
"autoload": {
"psr-4": {
"Psr\\Container\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "https://www.php-fig.org/"
}
],
"description": "Common Container Interface (PHP FIG PSR-11)",
"homepage": "https://github.com/php-fig/container",
"keywords": [
"PSR-11",
"container",
"container-interface",
"container-interop",
"psr"
],
"support": {
"issues": "https://github.com/php-fig/container/issues",
"source": "https://github.com/php-fig/container/tree/1.1.2"
},
"time": "2021-11-05T16:50:12+00:00"
},
{
"name": "psr/http-message",
"version": "1.1",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-message.git",
"reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
"reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
"shasum": ""
},
"require": {
"php": "^7.2 || ^8.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.1.x-dev"
}
},
"autoload": {
"psr-4": {
"Psr\\Http\\Message\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "http://www.php-fig.org/"
}
],
"description": "Common interface for HTTP messages",
"homepage": "https://github.com/php-fig/http-message",
"keywords": [
"http",
"http-message",
"psr",
"psr-7",
"request",
"response"
],
"support": {
"source": "https://github.com/php-fig/http-message/tree/1.1"
},
"time": "2023-04-04T09:50:52+00:00"
},
{
"name": "psr/log",
"version": "1.1.4",
"source": {
"type": "git",
"url": "https://github.com/php-fig/log.git",
"reference": "d49695b909c3b7628b6289db5479a1c204601f11"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11",
"reference": "d49695b909c3b7628b6289db5479a1c204601f11",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.1.x-dev"
}
},
"autoload": {
"psr-4": {
"Psr\\Log\\": "Psr/Log/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "https://www.php-fig.org/"
}
],
"description": "Common interface for logging libraries",
"homepage": "https://github.com/php-fig/log",
"keywords": [
"log",
"psr",
"psr-3"
],
"support": {
"source": "https://github.com/php-fig/log/tree/1.1.4"
},
"time": "2021-05-03T11:20:27+00:00"
},
{
"name": "psr/simple-cache",
"version": "1.0.1",
"source": {
"type": "git",
"url": "https://github.com/php-fig/simple-cache.git",
"reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/simple-cache/zipball/408d5eafb83c57f6365a3ca330ff23aa4a5fa39b",
"reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"autoload": {
"psr-4": {
"Psr\\SimpleCache\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "http://www.php-fig.org/"
}
],
"description": "Common interfaces for simple caching",
"keywords": [
"cache",
"caching",
"psr",
"psr-16",
"simple-cache"
],
"support": {
"source": "https://github.com/php-fig/simple-cache/tree/master"
},
"time": "2017-10-23T01:57:42+00:00"
},
{
"name": "topthink/framework",
"version": "v6.1.5",
"source": {
"type": "git",
"url": "https://github.com/top-think/framework.git",
"reference": "57d1950a1844ef8d3098ea290032aeb92e2e32c3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/framework/zipball/57d1950a1844ef8d3098ea290032aeb92e2e32c3",
"reference": "57d1950a1844ef8d3098ea290032aeb92e2e32c3",
"shasum": ""
},
"require": {
"ext-json": "*",
"ext-mbstring": "*",
"php": ">=7.2.5",
"psr/container": "~1.0",
"psr/http-message": "^1.0",
"psr/log": "~1.0",
"psr/simple-cache": "^1.0",
"topthink/think-helper": "^3.1.1",
"topthink/think-orm": "^2.0|^3.0"
},
"require-dev": {
"guzzlehttp/psr7": "^2.1.0",
"mikey179/vfsstream": "^1.6",
"mockery/mockery": "^1.2",
"phpunit/phpunit": "^7.0"
},
"type": "library",
"autoload": {
"files": [],
"psr-4": {
"think\\": "src/think/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "liu21st",
"email": "[email protected]"
},
{
"name": "yunwuxin",
"email": "[email protected]"
}
],
"description": "The ThinkPHP Framework.",
"homepage": "http://thinkphp.cn/",
"keywords": [
"framework",
"orm",
"thinkphp"
],
"support": {
"issues": "https://github.com/top-think/framework/issues",
"source": "https://github.com/top-think/framework/tree/v6.1.5"
},
"time": "2024-04-16T02:01:19+00:00"
},
{
"name": "topthink/think-helper",
"version": "v3.1.11",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-helper.git",
"reference": "1d6ada9b9f3130046bf6922fe1bd159c8d88a33c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-helper/zipball/1d6ada9b9f3130046bf6922fe1bd159c8d88a33c",
"reference": "1d6ada9b9f3130046bf6922fe1bd159c8d88a33c",
"shasum": ""
},
"require": {
"php": ">=7.1.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
},
"type": "library",
"autoload": {
"files": [
"src/helper.php"
],
"psr-4": {
"think\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "yunwuxin",
"email": "[email protected]"
}
],
"description": "The ThinkPHP6 Helper Package",
"support": {
"issues": "https://github.com/top-think/think-helper/issues",
"source": "https://github.com/top-think/think-helper/tree/v3.1.11"
},
"time": "2025-04-07T06:55:59+00:00"
},
{
"name": "topthink/think-migration",
"version": "v3.1.1",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-migration.git",
"reference": "22c44058e1454f3af1d346e7f6524fbe654de7fb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-migration/zipball/22c44058e1454f3af1d346e7f6524fbe654de7fb",
"reference": "22c44058e1454f3af1d346e7f6524fbe654de7fb",
"shasum": ""
},
"require": {
"php": ">=7.2",
"topthink/framework": "^6.0 || ^8.0",
"topthink/think-helper": "^3.0.3"
},
"require-dev": {
"composer/composer": "^2.5.8",
"fzaninotto/faker": "^1.8",
"robmorgan/phinx": "^0.13.4"
},
"suggest": {
"fzaninotto/faker": "Required to use the factory builder (^1.8)."
},
"type": "library",
"extra": {
"think": {
"services": [
"think\\migration\\Service"
]
}
},
"autoload": {
"psr-4": {
"Phinx\\": "phinx",
"think\\migration\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "yunwuxin",
"email": "[email protected]"
}
],
"support": {
"issues": "https://github.com/top-think/think-migration/issues",
"source": "https://github.com/top-think/think-migration/tree/v3.1.1"
},
"time": "2023-09-14T05:51:31+00:00"
},
{
"name": "topthink/think-orm",
"version": "v2.0.62",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-orm.git",
"reference": "e53bfea572a133039ad687077120de5521af617f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-orm/zipball/e53bfea572a133039ad687077120de5521af617f",
"reference": "e53bfea572a133039ad687077120de5521af617f",
"shasum": ""
},
"require": {
"ext-json": "*",
"ext-pdo": "*",
"php": ">=7.1.0",
"psr/log": "^1.0|^2.0",
"psr/simple-cache": "^1.0|^2.0",
"topthink/think-helper": "^3.1"
},
"require-dev": {
"phpunit/phpunit": "^7|^8|^9.5"
},
"type": "library",
"autoload": {
"files": [
"stubs/load_stubs.php"
],
"psr-4": {
"think\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "liu21st",
"email": "[email protected]"
}
],
"description": "think orm",
"keywords": [
"database",
"orm"
],
"support": {
"issues": "https://github.com/top-think/think-orm/issues",
"source": "https://github.com/top-think/think-orm/tree/v2.0.62"
},
"time": "2024-09-22T06:17:47+00:00"
},
{
"name": "topthink/think-template",
"version": "v2.0.10",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-template.git",
"reference": "2b28c9f787c94f6c22312c9fe97dd3d926c03e1c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-template/zipball/2b28c9f787c94f6c22312c9fe97dd3d926c03e1c",
"reference": "2b28c9f787c94f6c22312c9fe97dd3d926c03e1c",
"shasum": ""
},
"require": {
"php": ">=7.1.0",
"psr/simple-cache": "^1.0"
},
"type": "library",
"autoload": {
"psr-4": {
"think\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "liu21st",
"email": "[email protected]"
}
],
"description": "the php template engine",
"support": {
"issues": "https://github.com/top-think/think-template/issues",
"source": "https://github.com/top-think/think-template/tree/v2.0.10"
},
"time": "2024-08-12T05:48:57+00:00"
},
{
"name": "topthink/think-view",
"version": "v1.0.14",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-view.git",
"reference": "edce0ae2c9551ab65f9e94a222604b0dead3576d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-view/zipball/edce0ae2c9551ab65f9e94a222604b0dead3576d",
"reference": "edce0ae2c9551ab65f9e94a222604b0dead3576d",
"shasum": ""
},
"require": {
"php": ">=7.1.0",
"topthink/think-template": "^2.0"
},
"type": "library",
"autoload": {
"psr-4": {
"think\\view\\driver\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "liu21st",
"email": "[email protected]"
}
],
"description": "thinkphp template driver",
"support": {
"issues": "https://github.com/top-think/think-view/issues",
"source": "https://github.com/top-think/think-view/tree/v1.0.14"
},
"time": "2019-11-06T11:40:13+00:00"
}
],
"packages-dev": [
{
"name": "symfony/polyfill-mbstring",
"version": "v1.33.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493",
"reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493",
"shasum": ""
},
"require": {
"ext-iconv": "*",
"php": ">=7.2"
},
"provide": {
"ext-mbstring": "*"
},
"suggest": {
"ext-mbstring": "For best performance"
},
"type": "library",
"extra": {
"thanks": {
"url": "https://github.com/symfony/polyfill",
"name": "symfony/polyfill"
}
},
"autoload": {
"files": [
"bootstrap.php"
],
"psr-4": {
"Symfony\\Polyfill\\Mbstring\\": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Nicolas Grekas",
"email": "[email protected]"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill for the Mbstring extension",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"mbstring",
"polyfill",
"portable",
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.33.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://github.com/nicolas-grekas",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2024-12-23T08:48:59+00:00"
},
{
"name": "symfony/polyfill-php72",
"version": "v1.31.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php72.git",
"reference": "fa2ae56c44f03bed91a39bfc9822e31e7c5c38ce"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/fa2ae56c44f03bed91a39bfc9822e31e7c5c38ce",
"reference": "fa2ae56c44f03bed91a39bfc9822e31e7c5c38ce",
"shasum": ""
},
"require": {
"php": ">=7.2"
},
"type": "metapackage",
"extra": {
"thanks": {
"url": "https://github.com/symfony/polyfill",
"name": "symfony/polyfill"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Nicolas Grekas",
"email": "[email protected]"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"polyfill",
"portable",
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-php72/tree/v1.31.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2024-09-09T11:45:10+00:00"
},
{
"name": "symfony/polyfill-php80",
"version": "v1.33.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php80.git",
"reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/0cc9dd0f17f61d8131e7df6b84bd344899fe2608",
"reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608",
"shasum": ""
},
"require": {
"php": ">=7.2"
},
"type": "library",
"extra": {
"thanks": {
"url": "https://github.com/symfony/polyfill",
"name": "symfony/polyfill"
}
},
"autoload": {
"files": [
"bootstrap.php"
],
"psr-4": {
"Symfony\\Polyfill\\Php80\\": ""
},
"classmap": [
"Resources/stubs"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Ion Bazan",
"email": "[email protected]"
},
{
"name": "Nicolas Grekas",
"email": "[email protected]"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"polyfill",
"portable",
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-php80/tree/v1.33.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://github.com/nicolas-grekas",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2025-01-02T08:10:11+00:00"
},
{
"name": "symfony/var-dumper",
"version": "v4.4.47",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
"reference": "1069c7a3fca74578022fab6f81643248d02f8e63"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/1069c7a3fca74578022fab6f81643248d02f8e63",
"reference": "1069c7a3fca74578022fab6f81643248d02f8e63",
"shasum": ""
},
"require": {
"php": ">=7.1.3",
"symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-php72": "~1.5",
"symfony/polyfill-php80": "^1.16"
},
"conflict": {
"phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0",
"symfony/console": "<3.4"
},
"require-dev": {
"ext-iconv": "*",
"symfony/console": "^3.4|^4.0|^5.0",
"symfony/process": "^4.4|^5.0",
"twig/twig": "^1.43|^2.13|^3.0.4"
},
"suggest": {
"ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).",
"ext-intl": "To show region name in time zone dump",
"symfony/console": "To use the ServerDumpCommand and/or the bin/var-dump-server script"
},
"bin": [
"Resources/bin/var-dump-server"
],
"type": "library",
"autoload": {
"files": [
"Resources/functions/dump.php"
],
"psr-4": {
"Symfony\\Component\\VarDumper\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Nicolas Grekas",
"email": "[email protected]"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Provides mechanisms for walking through any arbitrary PHP variable",
"homepage": "https://symfony.com",
"keywords": [
"debug",
"dump"
],
"support": {
"source": "https://github.com/symfony/var-dumper/tree/v4.4.47"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2022-10-03T15:15:11+00:00"
},
{
"name": "topthink/think-trace",
"version": "v1.6",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-trace.git",
"reference": "136cd5d97e8bdb780e4b5c1637c588ed7ca3e142"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-trace/zipball/136cd5d97e8bdb780e4b5c1637c588ed7ca3e142",
"reference": "136cd5d97e8bdb780e4b5c1637c588ed7ca3e142",
"shasum": ""
},
"require": {
"php": ">=7.1.0",
"topthink/framework": "^6.0|^8.0"
},
"type": "library",
"extra": {
"think": {
"config": {
"trace": "src/config.php"
},
"services": [
"think\\trace\\Service"
]
}
},
"autoload": {
"psr-4": {
"think\\trace\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "liu21st",
"email": "[email protected]"
}
],
"description": "thinkphp debug trace",
"support": {
"issues": "https://github.com/top-think/think-trace/issues",
"source": "https://github.com/top-think/think-trace/tree/v1.6"
},
"time": "2023-02-07T08:36:32+00:00"
}
],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
"php": ">=7.3.5",
"ext-curl": "*",
"ext-json": "*",
"ext-zip": "*",
"ext-pdo": "*",
"ext-iconv": "*"
},
"platform-dev": [],
"plugin-api-version": "2.6.0"
}
+2 -2
View File
@@ -32,6 +32,6 @@ return [
// 定义404错误的模板文件地址
404 => \think\facade\App::getRootPath() . 'public/404.html',
],
'version' => '1.9',
'ver' => 1090
'version' => '1.11',
'ver' => 1092
];
+2 -2
View File
@@ -48,8 +48,8 @@ INSERT INTO `toolbox_config` (`key`, `value`) VALUES
('captcha_id', ''),
('captcha_key', ''),
('ip_type', '0'),
('cdn_cdnjs', '//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/'),
('cdn_npm', 'https://unpkg.com/'),
('cdn_cdnjs', 'https://s4.zstatic.net/ajax/libs/'),
('cdn_npm', 'https://s4.zstatic.net/npm/'),
('description', '这是一个非常Nice的在线工具箱'),
('foot_code', ''),
('keywords', '彩虹工具网,源码查看器原创,在线,工具'),
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace plugin\utility\imghosting\api;
use Exception;
use plugin\utility\imghosting\api;
class baidu implements api
{
public function upload($filepath, $filename){
$url = 'https://wenku.baidu.com/user/api/editorimg';
$referer = 'https://wenku.baidu.com/';
$file = new \CURLFile($filepath);
$file->setPostFilename($filename);
$param = [
'file' => $file,
];
$cookie = 'BDUSS=3plTHA0aHpRNGI3MmIxTkpmNVpWTTYtLXpVWjlaRjdRQzFsNmxQNlNufkRiWGhvSVFBQUFBJCQAAAAAAAAAAAEAAAB5WXC40tfDzsTPs8cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMPgUGjD4FBoS';
$data = get_curl($url,$param,$referer, $cookie);
$arr = json_decode($data,true);
if(isset($arr['link'])){
$imgurl = str_replace('.cdn.bcebos.com', '.bj.bcebos.com', $arr['link']);
return ['url'=>$imgurl];
}else{
throw new Exception('上传失败!接口错误');
}
}
}
+114 -12
View File
@@ -8,21 +8,123 @@ use plugin\utility\imghosting\api;
class cdn58 implements api
{
public function upload($filepath, $filename){
$url = 'https://upload.58cdn.com.cn/json';
$referer = 'https://ai.58.com/pc/';
$imgdata = base64_encode(file_get_contents($filepath));
$params = [
'Pic-Data' => $imgdata,
'Pic-Encoding' => 'base64',
'Pic-Path' => '/nowater/webim/big/',
'Pic-Size' => '0*0'
$file_ext = pathinfo($filename, PATHINFO_EXTENSION);
if(!in_array($file_ext, ['jpg','jpeg','png','gif','bmp'])) throw new Exception('上传失败!不支持的文件格式');
$user_id = '58Anonymous'.$this->guid();
$user_info = [
'user_id' => $user_id,
'source' => '14',
'im_token' => $user_id,
'client_version' => '1.0',
'client_type' => 'pcweb',
'os_type' => 'Chrome',
'os_version' => '122.0.6261.95',
'appid' => '10140-mcs@jitmouQrcHs',
'extend_flag' => '0',
'unread_index' => '1',
'sdk_version' => '6432',
'device_id' => $user_id,
'xxzl_smartid' => '',
'id58' => 'CkwAd2e0U3tBNxbRAzQ2Ag==',
];
$data = get_curl($url,json_encode($params),$referer,0,0,0,0,['application/json']);
if(strpos($data, 'n_v2')!==false){
$imgurl = 'https://pic'.rand(1,8).'.58cdn.com.cn/nowater/webim/big/'.$data;
$params = http_build_query($user_info);
$params = $this->encrypt($params);
$post = [
'sender_id' => $user_id,
'sender_source' => 14,
'to_id' => '10002',
'to_source' => 100,
'file_suffixs' => [$file_ext],
];
$post = json_encode($post);
$post = $this->encrypt($post);
$url = 'https://im.58.com/msg/get_pic_upload_url?params='.$params.'&version=j1.0';
$referer = 'https://ai.58.com/pc/';
$ua = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36';
$data = get_curl($url,$post,$referer,0,0,$ua,0,['Content-Type: text/plain;charset=UTF-8', 'Origin: https://ai.58.com']);
$arr = json_decode($data, true);
if(isset($arr['error_code']) && $arr['error_code']==0){
if(empty($arr['data']['upload_info'])) throw new Exception('上传失败!未返回上传地址');
$url = $arr['data']['upload_info'][0]['url'];
}else{
throw new Exception('上传失败!'.(isset($arr['error_msg']) ? $arr['error_msg'] : '接口错误'));
}
$mine_type = $this->mime_content_type($file_ext);
[$httpCode, $header, $body] = $this->curl_upload($url, file_get_contents($filepath), ['Content-Type: '.$mine_type]);
if($httpCode == 200){
$filename = getSubstr($url, '/nowater/im/', '?');
$imgurl = 'https://pic'.rand(1,8).'.58cdn.com.cn/nowater/im/'.$filename;
return ['url'=>$imgurl];
}else{
throw new Exception('上传失败!接口错误');
throw new Exception('上传失败!httpCode='.$httpCode);
}
}
private function mime_content_type($ext)
{
$mime_types = [
'png' => 'image/png',
'jpeg' => 'image/jpeg',
'jpg' => 'image/jpeg',
'gif' => 'image/gif',
'bmp' => 'image/bmp',
];
return isset($mime_types[$ext]) ? $mime_types[$ext] : 'application/octet-stream';
}
private function encrypt($data){
$str = base64_encode($data);
$equal_count = substr_count($str, '=');
$str = str_replace(['+','/','='], ['-','_',''], $str).$equal_count;
$half = floor(strlen($str)/2);
$str = substr($str, $half).substr($str, 0, $half);
return $str;
}
private function decrypt($data) {
$half = ceil(strlen($data)/2);
$data = substr($data, $half).substr($data, 0, $half);
$equal_count = substr($data, -1);
$data = substr($data, 0, -1);
$data = str_replace(['-', '_'], ['+', '/'], $data);
$data .= str_repeat('=', $equal_count);
return base64_decode($data);
}
private function guid(){
$guid = md5(uniqid(mt_rand(), true));
return substr($guid,0,8).'-'.substr($guid,8,4).'-4'.substr($guid,12,3).'-'.substr($guid,16,4).'-'.substr($guid,20,12);
}
private function curl_upload($url, $body, $header, $timeout = 10)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36');
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
$data = curl_exec($ch);
if (curl_errno($ch) > 0) {
$errmsg = curl_error($ch);
curl_close($ch);
throw new Exception($errmsg, 0);
}
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$headerSize = curl_getinfo($ch, CURLINFO_HEADER_SIZE);
$header = substr($data, 0, $headerSize);
$body = substr($data, $headerSize);
curl_close($ch);
return [$httpCode, $header, $body];
}
}
@@ -1,67 +0,0 @@
<?php
namespace plugin\utility\imghosting\api;
use Exception;
use plugin\utility\imghosting\api;
class dianping implements api
{
public function upload($filepath, $filename){
$url = 'https://kf.dianping.com/api/file/burstUploadFile';
$file = new \CURLFile($filepath);
$file->setPostFilename($filename);
$param = [
'files' => $file,
'fileName' => $filename,
'part' => '0',
'partSize' => '1',
'fileID' => time().rand(111,999)
];
$header = [
'CSC-VisitId: '.$this->getvisitid()
];
$data = get_curl($url,$param,'https://h5.dianping.com/',0,0,0,0,$header);
$arr = json_decode($data,true);
if(isset($arr['code']) && $arr['code'] == 200){
$picurl = str_replace('http://','https://',$arr['data']['uploadPath']);
return ['url'=>$picurl];
}elseif(isset($arr['errMsg'])){
throw new Exception('上传失败!'.$arr['errMsg']);
}else{
throw new Exception('上传失败!接口错误');
}
}
private function getvisitid(){
$visitid = cache('dianping_visitid');
if($visitid) return $visitid;
$url = 'https://kf.dianping.com/csCenter/access/dealOrder_Help_DP_PC';
$url = $this->get_location_url($url);
if($url){
$visitid = getSubstr($url, 'visitId=', '&');
if($visitid){
$url = 'https://kf.dianping.com/api/portal/message/init?visitId='.$visitid.'&accessToken=undefined';
$post = '{"type":"Init","parameters":{"isPreview":true,"build":null}}';
get_curl($url, $post);
cache('dianping_visitid', $visitid, 86400);
return $visitid;
}
}
throw new Exception('上传失败!获取visitId异常');
}
private function get_location_url($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36");
curl_exec($ch);
$final_url = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_close($ch);
return $final_url;
}
}
+1 -1
View File
@@ -8,7 +8,7 @@ use plugin\utility\imghosting\api;
class imgdd implements api
{
public function upload($filepath, $filename){
$url = 'https://imgdd.com/api/v1/upload';
$url = 'https://imgdd.com/upload';
$referer = 'https://imgdd.com/';
$file = new \CURLFile($filepath);
$file->setPostFilename($filename);
+36 -3
View File
@@ -8,14 +8,14 @@ use plugin\utility\imghosting\api;
class locimg implements api
{
public function upload($filepath, $filename){
$url = 'https://www.locimg.com/upload/upload.html';
$referer = 'https://www.locimg.com/';
$url = 'https://yunimg.cc/upload/upload.html';
$referer = 'https://yunimg.cc/';
$file = new \CURLFile($filepath, 'image/jpeg', $filename);
$param = [
'image' => $file,
'fileId' => $filename,
];
$data = get_curl($url,$param,$referer,0,0,0,0,['X-Requested-With: XMLHttpRequest']);
$data = $this->curl($url,$param,$referer,['X-Requested-With: XMLHttpRequest']);
$arr = json_decode($data,true);
if(isset($arr['data']['url'])){
return ['url'=>$arr['data']['url']];
@@ -25,4 +25,37 @@ class locimg implements api
throw new Exception('上传失败!接口错误');
}
}
private function curl($url, $post=0, $referer=0, $addheader=0)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
/*curl_setopt($ch, CURLOPT_PROXYAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_PROXY, '127.0.0.1');
curl_setopt($ch, CURLOPT_PROXYPORT, 10809);
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);*/
$httpheader[] = "Accept: */*";
$httpheader[] = "Accept-Encoding: gzip,deflate,sdch";
$httpheader[] = "Accept-Language: zh-CN,zh;q=0.8";
$httpheader[] = "Connection: close";
if($addheader){
$httpheader = array_merge($httpheader, $addheader);
}
curl_setopt($ch, CURLOPT_HTTPHEADER, $httpheader);
if ($post) {
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
}
if($referer){
curl_setopt($ch, CURLOPT_REFERER, $referer);
}
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36");
curl_setopt($ch, CURLOPT_ENCODING, "gzip");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$ret = curl_exec($ch);
curl_close($ch);
return $ret;
}
}
-28
View File
@@ -1,28 +0,0 @@
<?php
namespace plugin\utility\imghosting\api;
use Exception;
use plugin\utility\imghosting\api;
class netease implements api
{
public function upload($filepath, $filename){
$url = 'http://upload.buzz.163.com/picupload';
$file = new \CURLFile($filepath);
$file->setPostFilename($filename);
$param = [
'file' => $file,
'from' => 'neteasecode_mp',
];
$data = get_curl($url,$param,$url);
$arr = json_decode($data,true);
if(isset($arr['code']) && $arr['code']==200){
return ['url'=>str_replace('http://','https://',$arr['data']['url'])];
}elseif(isset($arr['msg'])){
throw new Exception('上传失败请重试('.$arr['msg'].'');
}else{
throw new Exception('上传失败!接口错误');
}
}
}
-28
View File
@@ -1,28 +0,0 @@
<?php
namespace plugin\utility\imghosting\api;
use Exception;
use plugin\utility\imghosting\api;
class oppo implements api
{
public function upload($filepath, $filename){
$url = 'https://api.open.oppomobile.com/api/utility/upload';
$file = new \CURLFile($filepath);
$file->setPostFilename($filename);
$param = [
'file' => $file,
'type' => 'feedback',
];
$data = get_curl($url,$param,$url);
$arr = json_decode($data,true);
if(isset($arr['errno']) && $arr['errno']==0){
return ['url'=>str_replace('store2.heytapimage.com', 'store.heytapimage.com', $arr['data']['url'])];
}elseif(isset($arr['data']['message'])){
throw new Exception('上传失败请重试('.$arr['data']['message'].'');
}else{
throw new Exception('上传失败!接口错误');
}
}
}
+2 -2
View File
@@ -9,7 +9,7 @@ use think\helper\Str;
class pngcm implements api
{
public function upload($filepath, $filename){
$url = 'https://png.cm/app/upload.php';
$url = 'https://img.wnflb2023.com/application/upload.php';
$file = new \CURLFile($filepath);
$file->setPostFilename($filename);
$param = [
@@ -18,7 +18,7 @@ class pngcm implements api
'sign' => time(),
'file' => $file,
];
$data = get_curl($url,$param,'https://png.cm/');
$data = get_curl($url,$param,'https://img.wnflb2023.com/');
$arr = json_decode($data,true);
if(isset($arr['code']) && $arr['code']==200){
return ['url'=>$arr['url']];
-28
View File
@@ -1,28 +0,0 @@
<?php
namespace plugin\utility\imghosting\api;
use Exception;
use plugin\utility\imghosting\api;
class vipkid implements api
{
public function upload($filepath, $filename){
$url = 'https://www.vipkid.com/rest/gw/api/upload/vos';
$file = new \CURLFile($filepath);
$file->setPostFilename($filename);
$param = [
'file' => $file,
'uploadType' => 'IM'
];
$data = get_curl($url,$param,$url,0,0,0,0,['vk-cr-code: kr']);
$arr = json_decode($data,true);
if(isset($arr['code']) && $arr['code']==200){
return ['url'=>$arr['data']['url']];
}elseif(isset($arr['msg'])){
throw new Exception('上传失败请重试('.$arr['msg'].'');
}else{
throw new Exception('上传失败!接口错误');
}
}
}
+9 -5
View File
@@ -97,12 +97,16 @@ textarea.form-control{min-height: auto;}
data: {
apitypes: [
{
title: '大众点评',
key: 'dianping'
title: '58同城',
key: 'cdn58'
},
{
title: 'LOCIMG',
key: 'locimg'
title: '百度文库',
key: 'baidu'
},
{
title: 'fuliba',
key: 'pngcm'
},
{
title: 'IMGDD',
@@ -141,7 +145,7 @@ textarea.form-control{min-height: auto;}
]
},
output: [],
apitype: 'dianping',
apitype: 'baidu',
imgurl: ''
},
progress: 0,
+36 -14
View File
@@ -8,15 +8,22 @@ class XiaomiSport
private function getAccess($username, $password){
if(!strpos($username, '@')) $username = '+86'.$username;
$url = 'https://api-user.huami.com/registrations/'.$username.'/tokens';
$data['client_id'] = 'HuaMi';
$data['password'] = $password;
$data['redirect_uri'] = 'https://s3-us-west-2.amazonaws.com/hm-registration/successsignin.html';
$data['token'] = 'access';
$response = $this->curl($url, $data);
preg_match("/access=(.*?)&/", $response['header'], $access);
if(isset($access[1])){
$url = 'https://api-user.zepp.com/v2/registrations/tokens';
$data = [
'emailOrPhone' => $username,
'password' => $password,
'state' => 'REDIRECTION',
'client_id' => 'HuaMi',
'country_code' => 'CN',
'token' => 'access',
'redirect_uri' => 'https://s3-us-west-2.amazonaws.com/hm-registration/successsignin.html',
];
$body = $this->encryptData(http_build_query($data));
$response = $this->curl($url, $body, null, true);
if(preg_match("/access=(.*?)&/", $response['header'], $access)){
return $access[1];
}elseif(preg_match("/refresh=(.*?)&/", $response['header'], $refresh)){
return $refresh[1];
}elseif(strpos($response['header'], 'error=')){
throw new Exception('账号或密码错误!');
}else{
@@ -24,18 +31,29 @@ class XiaomiSport
}
}
private function encryptData($plain)
{
$key = 'xeNtBVqzDc6tuNTh';
$iv = 'MAAAYAAAAAAAAABg';
$cipher = openssl_encrypt($plain, 'AES-128-CBC', $key, OPENSSL_RAW_DATA, $iv);
return $cipher;
}
public function login($username, $password){
$access = $this->getAccess($username, $password);
$url = 'https://account.huami.com/v2/client/login';
$url = 'https://account.zepp.com/v2/client/login';
$data = [
'app_name' => 'com.xiaomi.hm.health',
'app_version' => '4.6.0',
'app_version' => '6.14.0',
'code' => $access,
'country_code' => 'CN',
'device_id' => '2C8B4939-0CCD-4E94-8CBA-CB8EA6E613A1',
'device_model' => 'phone',
'device_model' => 'android_phone',
'grant_type' => 'access_token',
'third_name' => 'huami',
'dn' => 'account.zepp.com,api-user.zepp.com,api-mifit.zepp.com,api-watch.zepp.com,app-analytics.zepp.com,api-analytics.huami.com,auth.zepp.com',
'source' => 'com.xiaomi.hm.health:6.14.0:50818',
'lang' => 'zh',
];
$response = $this->curl($url, $data);
$arr = json_decode($response['body'], true);
@@ -51,7 +69,7 @@ class XiaomiSport
}
public function step($userid, $token, $step){
$url = "https://api-mifit-cn.huami.com/v1/data/band_data.json?&t=" . time();
$url = "https://api-mifit-cn.zepp.com/v1/data/band_data.json?&t=" . time();
$json = '[{"data_hr":"\/\/\/\/\/\/9L\/\/\/\/\/\/\/\/\/\/\/\/Vv\/\/\/\/\/\/\/\/\/\/\/0v\/\/\/\/\/\/\/\/\/\/\/9e\/\/\/\/\/0n\/a\/\/\/S\/\/\/\/\/\/\/\/\/\/\/\/0b\/\/\/\/\/\/\/\/\/\/1FK\/\/\/\/\/\/\/\/\/\/\/\/R\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/9PTFFpaf9L\/\/\/\/\/\/\/\/\/\/\/\/R\/\/\/\/\/\/\/\/\/\/\/\/0j\/\/\/\/\/\/\/\/\/\/\/9K\/\/\/\/\/\/\/\/\/\/\/\/Ov\/\/\/\/\/\/\/\/\/\/\/zf\/\/\/86\/zr\/Ov88\/zf\/Pf\/\/\/0v\/S\/8\/\/\/\/\/\/\/\/\/\/\/\/\/Sf\/\/\/\/\/\/\/\/\/\/\/z3\/\/\/\/\/\/0r\/Ov\/\/\/\/\/\/S\/9L\/zb\/Sf9K\/0v\/Rf9H\/zj\/Sf9K\/0\/\/N\/\/\/\/0D\/Sf83\/zr\/Pf9M\/0v\/Ov9e\/\/\/\/\/\/\/\/\/\/\/\/S\/\/\/\/\/\/\/\/\/\/\/\/zv\/\/z7\/O\/83\/zv\/N\/83\/zr\/N\/86\/z\/\/Nv83\/zn\/Xv84\/zr\/PP84\/zj\/N\/9e\/zr\/N\/89\/03\/P\/89\/z3\/Q\/9N\/0v\/Tv9C\/0H\/Of9D\/zz\/Of88\/z\/\/PP9A\/zr\/N\/86\/zz\/Nv87\/0D\/Ov84\/0v\/O\/84\/zf\/MP83\/zH\/Nv83\/zf\/N\/84\/zf\/Of82\/zf\/OP83\/zb\/Mv81\/zX\/R\/9L\/0v\/O\/9I\/0T\/S\/9A\/zn\/Pf89\/zn\/Nf9K\/07\/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AAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAA","tz":32,"did":"DA932FFFFE8816E7","src":24}],"summary":"{\"v\":6,\"slp\":{\"st\":1628296479,\"ed\":1628296479,\"dp\":0,\"lt\":0,\"wk\":0,\"usrSt\":-1440,\"usrEd\":-1440,\"wc\":0,\"is\":0,\"lb\":0,\"to\":0,\"dt\":0,\"rhr\":0,\"ss\":0},\"stp\":{\"ttl\":' . $step . ',\"dis\":10627,\"cal\":510,\"wk\":41,\"rn\":50,\"runDist\":7654,\"runCal\":397,\"stage\":[{\"start\":327,\"stop\":341,\"mode\":1,\"dis\":481,\"cal\":13,\"step\":680},{\"start\":342,\"stop\":367,\"mode\":3,\"dis\":2295,\"cal\":95,\"step\":2874},{\"start\":368,\"stop\":377,\"mode\":4,\"dis\":1592,\"cal\":88,\"step\":1664},{\"start\":378,\"stop\":386,\"mode\":3,\"dis\":1072,\"cal\":51,\"step\":1245},{\"start\":387,\"stop\":393,\"mode\":4,\"dis\":1036,\"cal\":57,\"step\":1124},{\"start\":394,\"stop\":398,\"mode\":3,\"dis\":488,\"cal\":19,\"step\":607},{\"start\":399,\"stop\":414,\"mode\":4,\"dis\":2220,\"cal\":120,\"step\":2371},{\"start\":415,\"stop\":427,\"mode\":3,\"dis\":1268,\"cal\":59,\"step\":1489},{\"start\":428,\"stop\":433,\"mode\":1,\"dis\":152,\"cal\":4,\"step\":238},{\"start\":434,\"stop\":444,\"mode\":3,\"dis\":2295,\"cal\":95,\"step\":2874},{\"start\":445,\"stop\":455,\"mode\":4,\"dis\":1592,\"cal\":88,\"step\":1664},{\"start\":456,\"stop\":466,\"mode\":3,\"dis\":1072,\"cal\":51,\"step\":1245},{\"start\":467,\"stop\":477,\"mode\":4,\"dis\":1036,\"cal\":57,\"step\":1124},{\"start\":478,\"stop\":488,\"mode\":3,\"dis\":488,\"cal\":19,\"step\":607},{\"start\":489,\"stop\":499,\"mode\":4,\"dis\":2220,\"cal\":120,\"step\":2371},{\"start\":500,\"stop\":511,\"mode\":3,\"dis\":1268,\"cal\":59,\"step\":1489},{\"start\":512,\"stop\":522,\"mode\":1,\"dis\":152,\"cal\":4,\"step\":238}]},\"goal\":8000,\"tz\":\"28800\"}","source":24,"type":0}]';
@@ -75,12 +93,16 @@ class XiaomiSport
}
private function curl($url, $data=null, $app_token=null){
private function curl($url, $data=null, $app_token=null, $ekv = false){
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
$httpheader[] = "Accept: application/json";
$httpheader[] = "Accept-Language: zh-CN,zh;q=0.8";
$httpheader[] = "Connection: keep-alive";
if($ekv) $httpheader[] = "x-hm-ekv: 1";
$httpheader[] = "app_name: com.xiaomi.hm.health";
$httpheader[] = "appname: com.xiaomi.hm.health";
$httpheader[] = "appplatform: android_phone";
if($app_token){
$httpheader[] = "apptoken: ".$app_token;
}
@@ -94,7 +116,7 @@ class XiaomiSport
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/7.0.12(0x17000c2d) NetType/WIFI Language/zh_CN');
curl_setopt($ch, CURLOPT_USERAGENT, 'MiFit6.14.0 (2211133C; Android 15; Density/2.75)');
curl_setopt($ch, CURLOPT_HEADER, 1);
$ret = curl_exec($ch);
$headerSize = curl_getinfo($ch, CURLINFO_HEADER_SIZE);
+53 -25
View File
@@ -17,36 +17,64 @@ class App extends Plugin
public function query(){
$video_url = input('post.video_url', null, 'trim');
if(!$video_url) return msg('error','视频链接不能为空');
if(!$video_url) return json(['code'=>-1, 'msg'=>'视频链接不能为空']);
$apitype = $this->get_api_type($video_url);
if(!$apitype) return json(['code'=>-1, 'msg'=>'不支持该视频链接']);
try{
$result = $this->parse($video_url);
return json(['code'=>0, 'msg'=>'success', 'data'=>$result]);
}catch(\Exception $e){
return json(['code'=>-1, 'msg'=>$e->getMessage()]);
$classname = 'plugin\\utility\\videoparse\\api\\'.$apitype;
if(class_exists($classname)){
$instance = new $classname();
try{
$result = $instance->parse($video_url);
return json(['code'=>0, 'msg'=>'success', 'data'=>$result]);
}catch(\Exception $e){
return json(['code'=>-1, 'msg'=>$e->getMessage()]);
}
}else{
return json(['code'=>-1, 'msg'=>'该平台类型不存在']);
}
}
public function parse($url){
$url = 'https://yuanxiapi.cn/api/jiexi_video/?url='.urlencode($url);
$data = get_curl($url);
$arr = json_decode($data, true);
if(isset($arr['code']) && $arr['code']==200){
if(isset($arr['video'])){
$resurl = $arr['video'];
}elseif(isset($arr['images'])){
$resurl = $arr['images'];
}else{
throw new \Exception('解析url返回异常');
}
return [
'title' => $arr['desc'],
'cover' => $arr['cover'],
'url' => $resurl,
];
}else{
throw new \Exception('视频解析失败');
private function get_api_type($url){
if(strpos($url, 'kg.qq.com/') || preg_match('/kg(\d+).qq.com\//', $url)){
return 'qmkg';
}
elseif(strpos($url, 'weishi.qq.com/')){
return 'weishi';
}
elseif(strpos($url, '.huya.com/')){
return 'huya';
}
elseif(strpos($url, '.acfun.cn/')){
return 'acfun';
}
elseif(strpos($url, '.douyin.com/')){
return 'douyin';
}
elseif(strpos($url, '.kuaishou.com/')){
return 'kuaishou';
}
elseif(strpos($url, '.xiaohongshu.com/') || strpos($url, 'xhslink.com/')){
return 'xiaohongshu';
}
elseif(strpos($url, 'toutiao.com/')){
return 'toutiao';
}
elseif(strpos($url, 'v.douyu.com/')){
return 'douyu';
}
elseif(strpos($url, 'weibo.com/') || strpos($url, 'weibo.cn/')){
return 'weibo';
}
elseif(strpos($url, 'pipix.com/')){
return 'pipixia';
}
elseif(strpos($url, 'izuiyou.com/') || strpos($url, 'xiaochuankeji.cn/')){
return 'zuiyou';
}
return false;
}
}
+8
View File
@@ -0,0 +1,8 @@
<?php
namespace plugin\utility\videoparse;
interface api
{
public function parse($url);
}
+70
View File
@@ -0,0 +1,70 @@
<?php
namespace plugin\utility\videoparse\api;
use Exception;
use plugin\utility\videoparse\api;
class acfun implements api
{
public function parse($url){
if(preg_match('!/ac(\d+)!', $url, $match)){ //UGC视频
$id = $match[1];
$requrl = 'https://www.acfun.cn/player/ac' . $id;
$res = get_curl($requrl);
if(preg_match('/window.videoInfo = (.*?);\n/', $res, $match)){
//echo $match[1];exit;
$arr = json_decode(trim($match[1]), true);
$videoinfo = json_decode($arr['currentVideoInfo']['ksPlayJson'], true);
if($videoinfo){
$video_list = $videoinfo['adaptationSet'][0]['representation'];
if(empty($video_list))throw new Exception('视频列表解析失败');
$url = $video_list[0]['url'];
return [
'title' => $arr['title'],
'cover' => $arr['coverUrl'],
'url' => $url,
'time' => date('Y-m-d H:i:s', $arr['createTimeMillis']/1000),
'like' => $arr['likeCount'],
'author' => $arr['user']['name'],
'avatar' => $arr['user']['headUrl'],
];
}else{
throw new Exception('视频信息解析失败');
}
}else{
throw new Exception('视频页面解析失败');
}
}elseif(preg_match('!/aa([0-9\_]+)!', $url, $match)){ //番剧
$id = $match[1];
$requrl = 'https://www.acfun.cn/bangumi/aa' . $id;
$res = get_curl($requrl);
if(preg_match('/window.bangumiData = (.*?);\n/', $res, $match)){
//echo $match[1];exit;
$arr = json_decode(trim($match[1]), true);
$videoinfo = json_decode($arr['currentVideoInfo']['ksPlayJson'], true);
if($videoinfo){
$video_list = $videoinfo['adaptationSet'][0]['representation'];
if(empty($video_list))throw new Exception('视频列表解析失败');
$url = $video_list[0]['url'];
return [
'title' => $arr['showTitle'],
'cover' => $arr['bangumiCoverImageH'],
'url' => $url,
'time' => date('Y-m-d H:i:s', $arr['onlineTime']/1000),
'like' => $arr['bangumiLikeCount'],
'author' => $arr['bangumiTitle'],
];
}else{
throw new Exception('视频信息解析失败');
}
}else{
throw new Exception('视频页面解析失败');
}
}else{
throw new Exception('视频id获取失败');
}
}
}
+41
View File
@@ -0,0 +1,41 @@
<?php
namespace plugin\utility\videoparse\api;
use Exception;
use plugin\utility\videoparse\api;
class douyin implements api
{
public function parse($url){
$url = 'https://api.makuo.cc/api/get.video.douyin?url='.urlencode($url);
$header = ['Authorization: '.config_get('yapi_token')];
$data = get_curl($url, 0, 0, 0, 0, 0, 0, $header);
$arr = json_decode($data, true);
if(isset($arr['code']) && $arr['code']==200){
if(isset($arr['data']['video_url'])){
return [
'title' => $arr['data']['title'],
'author' => $arr['data']['author'],
'time' => date('Y-m-d H:i:s', $arr['data']['time']),
'cover' => $arr['data']['cover'],
'url' => $arr['data']['video_url'],
];
}elseif(isset($arr['data']['images'])){
return [
'title' => $arr['data']['title'],
'author' => $arr['data']['author'],
'time' => date('Y-m-d H:i:s', $arr['data']['time']),
'cover' => $arr['data']['cover'],
'images' => $arr['data']['images'],
];
}else{
throw new Exception('解析url返回异常');
}
}elseif(isset($arr['msg'])){
throw new Exception('视频解析失败,'.$arr['msg']);
}else{
throw new Exception('视频解析失败');
}
}
}
+129
View File
@@ -0,0 +1,129 @@
<?php
namespace plugin\utility\videoparse\api;
use Exception;
use plugin\utility\videoparse\api;
class douyu implements api
{
private static $version = '220320250920';
public function parse($url){
if(preg_match('!\/show\/([a-zA-Z0-9]+)!', $url, $match)){
$vid = $match[1];
$requrl = 'https://v.douyu.com/show/' . $vid;
$res = get_curl($requrl);
if(preg_match('/DATA:\{content: (.*?),videoTag:/', $res, $match)){
$arr = json_decode($match[1], true);
if(isset($arr['point_id'])){
$result = [
'title' => $arr['title'],
'desc' => $arr['contents'],
'cover' => $arr['video_pic'],
'time' => date('Y-m-d H:i:s', $arr['create_time']),
'author' => $arr['author'],
'avatar' => $arr['authorIcon']
];
$requrl = 'https://v.douyu.com/wgapi/vodnc/front/stream/getStreamUrlWeb';
$dy_did = md5(microtime(true).rand(1000,9999));
$time = time();
$sign = $this->getsign($arr['point_id'], $dy_did, $time);
$data = [
'v' => self::$version,
'did' => $dy_did,
'tt' => $time,
'sign' => $sign,
'vid' => $arr['hash_id']
];
$cookie = 'dy_did='.$dy_did.';';
$res = get_curl($requrl, http_build_query($data), $url, $cookie);
$arr = json_decode($res, true);
if(isset($arr['error']) && $arr['error'] == 0 && isset($arr['data']['thumb_video'])){
if(isset($arr['data']['thumb_video']['super'])) $info = $arr['data']['thumb_video']['super'];
elseif(isset($arr['data']['thumb_video']['high'])) $info = $arr['data']['thumb_video']['high'];
elseif(isset($arr['data']['thumb_video']['normal'])) $info = $arr['data']['thumb_video']['normal'];
else throw new Exception('视频解析失败,无可用视频地址');
$result['url'] = $info['url'];
return $result;
}else{
throw new Exception('视频解析失败,'.($arr['msg'] ?? ''));
}
}
}
throw new Exception('视频解析失败');
}else{
throw new Exception('视频id获取失败');
}
}
private function getsign($xx0, $xx1, $xx2)
{
$k2 = [0x551983fb, 0x63c94be2, 0x0054dfe2, 0x3ba6bd08];
$MASK = 0xFFFFFFFF;
$add = fn(int $a, int $b) => ($a + $b) & $MASK;
$rotr = fn(int $x, int $n) => ((($x & $MASK) >> ($n & 31)) | (($x << (32 - ($n & 31))) & $MASK)) & $MASK;
$rotl = fn(int $x, int $n) => (((($x << ($n & 31)) & $MASK) | (($x & $MASK) >> (32 - ($n & 31))))) & $MASK;
$cb = $xx0 . $xx1 . $xx2 . self::$version;
$md = hash('md5', $cb, true);
$re = array_values(unpack('V4', $md));
for ($I = 0; $I < 2; $I++) {
$v0 = $re[$I * 2]; $v1 = $re[$I * 2 + 1];
$sum = 0; $delta = 0x9e3779b9;
for ($i = 0; $i < 32; $i++) {
$sum = $add($sum, $delta);
$v0 = $add($v0, ((($v1 << 4) + $k2[0]) ^ ($v1 + $sum) ^ (((($v1) & $MASK) >> 5) + $k2[1])) & $MASK);
$v1 = $add($v1, ((($v0 << 4) + $k2[2]) ^ ($v0 + $sum) ^ (((($v0) & $MASK) >> 5) + $k2[3])) & $MASK);
}
$re[$I * 2] = $v0 & $MASK;
$re[$I * 2 + 1] = $v1 & $MASK;
}
$re[0] = $rotr($re[0], $k2[0] % 16);
$re[0] = $rotl($re[0], $k2[2] % 16);
$re[0] = $rotl($re[0], $k2[0] % 16);
$re[0] = $rotr($re[0], $k2[2] % 16);
$re[0] = $rotl($re[0], $k2[2] % 16);
$re[1] = ($re[1] ^ $k2[1]) & $MASK;
$re[1] = $add($re[1], $k2[3]);
$re[1] = $add($re[1], $k2[1]);
$re[1] = ($re[1] ^ $k2[3]) & $MASK;
$re[1] = ($re[1] ^ $k2[3]) & $MASK;
$re[2] = $add($re[2], $k2[0]);
$re[2] = ($re[2] - $k2[2]) & $MASK;
$re[2] = ($re[2] - $k2[0]) & $MASK;
$re[2] = $add($re[2], $k2[2]);
$re[2] = $rotl($re[2], $k2[2] % 16);
$re[3] = $rotl($re[3], $k2[1] % 16);
$re[3] = $rotr($re[3], $k2[3] % 16);
$re[3] = $rotr($re[3], $k2[1] % 16);
$re[3] = ($re[3] - $k2[3]) & $MASK;
$re[0] = $add($re[0], $k2[0]);
$re[0] = $add($re[0], $k2[2]);
$re[0] = $rotl($re[0], $k2[2] % 16);
$re[1] = $rotr($re[1], $k2[1] % 16);
$re[1] = $rotl($re[1], $k2[3] % 16);
$re[1] = ($re[1] ^ $k2[3]) & $MASK;
$re[2] = $add($re[2], $k2[0]);
$re[2] = ($re[2] - $k2[2]) & $MASK;
$re[2] = $add($re[2], $k2[2]);
$re[2] = $rotr($re[2], $k2[2] % 16);
$re[3] = $rotl($re[3], $k2[1] % 16);
$re[3] = ($re[3] - $k2[3]) & $MASK;
$re[3] = $rotl($re[3], $k2[3] % 16);
$sign = bin2hex(pack('V*', $re[0], $re[1], $re[2], $re[3]));
return $sign;
}
}
+37
View File
@@ -0,0 +1,37 @@
<?php
namespace plugin\utility\videoparse\api;
use Exception;
use plugin\utility\videoparse\api;
class huya implements api
{
public function parse($url){
if(!preg_match('/\/(\d+).html/', $url, $match)) throw new Exception('视频id获取失败');
$id = $match[1];
$requrl = 'https://liveapi.huya.com/moment/getMomentContent?videoId=' . $id;
$res = get_curl($requrl, 0, 'https://v.huya.com/');
$arr = json_decode($res, true);
if(isset($arr['status']) && $arr['status'] == 200){
$url = $arr["data"]["moment"]["videoInfo"]["definitions"][0]["url"];
$cover = $arr["data"]["moment"]["videoInfo"]["videoCover"];
$title = $arr["data"]["moment"]["videoInfo"]["videoTitle"];
$avatarUrl = $arr["data"]["moment"]["videoInfo"]["avatarUrl"];
$author = $arr["data"]["moment"]["videoInfo"]["nickName"];
$time = date('Y-m-d H:i:s', $arr["data"]["moment"]["cTime"]);
$like = $arr["data"]["moment"]["favorCount"];
return [
'title' => $title,
'cover' => $cover,
'url' => $url,
'time' => $time,
'like' => $like,
'author' => $author,
'avatar' => $avatarUrl
];
}else{
throw new Exception('视频解析失败');
}
}
}
@@ -0,0 +1,43 @@
<?php
namespace plugin\utility\videoparse\api;
use Exception;
use plugin\utility\videoparse\api;
class kuaishou implements api
{
public function parse($url){
$url = 'https://api.makuo.cc/api/get.video.kuaishou?url='.urlencode($url);
$header = ['Authorization: '.config_get('yapi_token')];
$data = get_curl($url, 0, 0, 0, 0, 0, 0, $header);
$arr = json_decode($data, true);
if(isset($arr['code']) && $arr['code']==200){
if(isset($arr['data']['url'])){
return [
'title' => $arr['data']['title'],
'author' => $arr['data']['author'],
'avatar' => $arr['data']['avatar'],
'time' => date('Y-m-d H:i:s', intval($arr['data']['timestamp']/1000)),
'cover' => $arr['data']['cover'],
'url' => $arr['data']['url'],
];
}elseif(isset($arr['data']['images'])){
return [
'title' => $arr['data']['title'],
'author' => $arr['data']['author'],
'avatar' => $arr['data']['avatar'],
'time' => date('Y-m-d H:i:s', intval($arr['data']['timestamp']/1000)),
'cover' => $arr['data']['cover'],
'images' => $arr['data']['images'],
];
}else{
throw new Exception('解析url返回异常');
}
}elseif(isset($arr['msg'])){
throw new Exception('视频解析失败,'.$arr['msg']);
}else{
throw new Exception('视频解析失败');
}
}
}
+41
View File
@@ -0,0 +1,41 @@
<?php
namespace plugin\utility\videoparse\api;
use Exception;
use plugin\utility\videoparse\api;
class pipixia implements api
{
public function parse($url){
$url = 'https://api.makuo.cc/api/get.video.pipixia?url='.urlencode($url);
$header = ['Authorization: '.config_get('yapi_token')];
$data = get_curl($url, 0, 0, 0, 0, 0, 0, $header);
$arr = json_decode($data, true);
if(isset($arr['code']) && $arr['code']==200){
if(isset($arr['data']['url'])){
return [
'title' => $arr['data']['title'],
'author' => $arr['data']['author'],
'avatar' => $arr['data']['avatar'],
'cover' => $arr['data']['cover'],
'url' => $arr['data']['url'],
];
}elseif(isset($arr['data']['imgurl'])){
return [
'title' => $arr['data']['title'],
'author' => $arr['data']['author'],
'avatar' => $arr['data']['avatar'],
'cover' => $arr['data']['cover'],
'images' => $arr['data']['imgurl'],
];
}else{
throw new Exception('解析url返回异常');
}
}elseif(isset($arr['msg'])){
throw new Exception('视频解析失败,'.$arr['msg']);
}else{
throw new Exception('视频解析失败');
}
}
}
+34
View File
@@ -0,0 +1,34 @@
<?php
namespace plugin\utility\videoparse\api;
use Exception;
use plugin\utility\videoparse\api;
class qmkg implements api
{
public function parse($url){
if(!preg_match('/\?s=(.*)/', $url, $match)) throw new Exception('视频id获取失败');
$id = $match[1];
$requrl = 'https://kg.qq.com/node/play?s=' . $id;
$text = get_curl($requrl);
preg_match('/<title>(.*?)-(.*?)-/', $text, $video_title);
preg_match('/cover\":\"(.*?)\"/', $text, $video_cover);
preg_match('/playurl_video\":\"(.*?)\"/', $text, $video_url);
if(!isset($video_url[1]))preg_match('/playurl\":\"(.*?)\"/', $text, $video_url);
preg_match('/{\"activity_id\":0\,\"avatar\":\"(.*?)\"/', $text, $video_avatar);
preg_match('/<p class=\"singer_more__time\">(.*?)<\/p>/', $text, $video_time);
if (isset($video_url[1])) {
return [
'title' => $video_title[2],
'cover' => $video_cover[1],
'url' => $video_url[1],
'author' => $video_title[1],
'avatar' => $video_avatar[1],
'time' => $video_time[1],
];
}else{
throw new Exception('视频解析失败');
}
}
}
+47
View File
@@ -0,0 +1,47 @@
<?php
namespace plugin\utility\videoparse\api;
use Exception;
use plugin\utility\videoparse\api;
class toutiao implements api
{
public function parse($url){
if(preg_match('!/video\/(\d+)\/!', $url, $match)){
$id = $match[1];
$requrl = 'https://m.toutiao.com/video/' . $id . '/';
$ua = 'Mozilla/5.0 (Linux; Android 12; M2011K2C Build/SKQ1.211006.001) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.74 Mobile Safari/537.36';
$res = get_curl($requrl, 0, 0, 0, 0, $ua);
if(preg_match('/<script id="RENDER_DATA" type="application\/json">(.*?)<\/script>/', $res, $match)){
$json = rawurldecode($match[1]);
$arr = json_decode($json, true);
if(isset($arr['articleInfo']['playAuthTokenV2'])){
$result = [
'title' => $arr['articleInfo']['title'],
'author' => $arr['articleInfo']['mediaUser']['screenName'],
'avatar' => $arr['articleInfo']['mediaUser']['avatarUrl'],
'time' => date('Y-m-d H:i:s', $arr['articleInfo']['publishTime']),
'cover' => $arr['articleInfo']['posterUrl'],
];
$playinfo = base64_decode($arr['articleInfo']['playAuthTokenV2']);
$playinfo = json_decode($playinfo, true);
if(isset($playinfo['GetPlayInfoToken'])){
$requrl = 'https://vod.bytedanceapi.com/?'.$playinfo['GetPlayInfoToken'];
$res = get_curl($requrl, 0, $url, 0, 0, $ua);
$arr = json_decode($res, true);
if(isset($arr['Result']['Data']['PlayInfoList']) && !empty($arr['Result']['Data']['PlayInfoList'])){
$playinfolist = $arr['Result']['Data']['PlayInfoList'];
array_multisort(array_column($playinfolist, 'Bitrate'), SORT_DESC, $playinfolist);
$result['url'] = $playinfolist[0]['MainPlayUrl'];
return $result;
}
}
}
}
throw new Exception('视频解析失败');
}else{
throw new Exception('视频id获取失败');
}
}
}
+70
View File
@@ -0,0 +1,70 @@
<?php
namespace plugin\utility\videoparse\api;
use Exception;
use plugin\utility\videoparse\api;
class weibo implements api
{
public function parse($url, $retry = 0){
if(preg_match('/tv\/show\/([0-9:]+)/', $url, $matches) || preg_match('/fid=([0-9:]+)/', $url, $matches)){
$oid = $matches[1];
$page = '/tv/show/'.$oid;
$url = 'https://weibo.com/tv/api/component?page='.urlencode($page);
$post = 'data={"Component_Play_Playinfo":{"oid":"'.$oid.'"}}';
$referer = 'https://weibo.com/tv/show/'.$oid;
$cookie = cache('weibo_cookie');
if(!$cookie) $cookie = $this->genvisitor();
$data = get_curl($url, $post, $referer, $cookie);
$arr = json_decode($data, true);
if(isset($arr['code']) && $arr['code']=='100000'){
if(isset($arr['data']['Component_Play_Playinfo'])){
$info = $arr['data']['Component_Play_Playinfo'];
if(!empty($info['urls'])){
$hd_keys = ['超清 4K', '超清 2K', '高清 1080P', '高清 720P', '高清 480P'];
$play_url = null;
foreach($hd_keys as $key){
if(isset($info['urls'][$key])){
$play_url = $info['urls'][$key];
break;
}
}
if(!$play_url) $play_url = $info['urls'][array_key_first($info['urls'])];
$result = ['title'=>$info['title'], 'author'=>$info['author'], 'avatar'=>$info['avatar'], 'url'=>$play_url, 'cover'=>$info['cover_image'], 'time'=>date('Y-m-d H:i:s', $info['real_date']), 'duration'=>$info['duration']];
return $result;
}else{
throw new Exception('解析视频失败:视频地址不存在');
}
}else{
throw new Exception('解析视频失败:视频不存在');
}
}elseif(isset($arr['msg'])){
throw new Exception('解析视频失败:'.$arr['msg']);
}elseif(empty($data) && $retry = 0){
$this->genvisitor();
return $this->parse($url, 1);
}else{
throw new Exception('解析视频失败:接口请求失败');
}
}else{
throw new Exception('视频id获取失败');
}
}
private function genvisitor(){
$url = 'https://passport.weibo.com/visitor/genvisitor2';
$post = 'cb=visitor_gray_callback&tid=&from=weibo';
$referer = 'https://passport.weibo.com/visitor/visitor';
$data = get_curl($url, $post, $referer);
if(preg_match('/visitor_gray_callback\((.*?)\)/', $data, $matches)){
$arr = json_decode($matches[1], true);
if(isset($arr['retcode']) && $arr['retcode'] == 20000000){
$cookie = 'SUB='.$arr['data']['sub'].'; SUBP='.$arr['data']['subp'].';';
cache('weibo_cookie', $cookie);
return $cookie;
}
}
throw new Exception('生成访客cookie失败');
}
}
+41
View File
@@ -0,0 +1,41 @@
<?php
namespace plugin\utility\videoparse\api;
use Exception;
use plugin\utility\videoparse\api;
class weishi implements api
{
public function parse($url){
if(strpos($url,'feed/')){
$id = getSubstr($url,'feed/','/');
}else{
$id = getSubstr($url,'id=','&');
}
if(!$id) throw new Exception('视频id获取失败');
$requrl = 'https://h5.weishi.qq.com/webapp/json/weishi/WSH5GetPlayPage?feedid=' . $id;
$res = get_curl($requrl);
$arr = json_decode($res, true);
if(isset($arr['ret']) && $arr['ret'] == 0){
if(isset($arr['data']['feeds'][0]['video_url'])){
return [
'author' => $arr['data']['feeds'][0]['poster']['nick'],
'avatar' => $arr['data']['feeds'][0]['poster']['avatar'],
'time' => date('Y-m-d H:i:s', $arr['data']['feeds'][0]['poster']['createtime']),
'title' => $arr['data']['feeds'][0]['feed_desc_withat'],
'cover' => $arr['data']['feeds'][0]['images'][0]['url'],
'url' => $arr['data']['feeds'][0]['video_url']
];
}else{
throw new Exception('视频解析失败(地址获取失败)');
}
}elseif(isset($arr['msg'])){
throw new Exception('视频解析失败('.$arr['msg'].')');
}else{
throw new Exception('视频解析失败');
}
}
}
@@ -0,0 +1,48 @@
<?php
namespace plugin\utility\videoparse\api;
use Exception;
use think\helper\Str;
use plugin\utility\videoparse\api;
class xiaohongshu implements api
{
public function parse($url){
if(strpos($url, 'xhslink.com/')){
$url = get_location_url($url);
if(!$url || !strpos($url, 'xiaohongshu.com/')){
throw new Exception('短链接解析失败');
}
}
$data = get_curl($url);
if(preg_match('/window\.__INITIAL_STATE__=(.*?)<\/script>/', $data, $matches)){
$data = str_replace('undefined', 'null', $matches[1]);
$arr = json_decode($data, true);
if(isset($arr['note']['noteDetailMap']) && !empty($arr['note']['noteDetailMap'])){
$id = array_key_first($arr['note']['noteDetailMap']);
$info = $arr['note']['noteDetailMap'][$id]['note'];
$result = [
'type' => $info['type'],
'title' => $info['title'],
'desc' => $info['desc'],
'time' => date('Y-m-d H:i:s', intval($info['time']/1000)),
'author' => $info['user']['nickname'],
'avatar' => $info['user']['avatar'],
];
if($info['type'] == 'video'){
$result['cover'] = !empty($info['imageList']) ? $info['imageList'][0]['urlDefault'] : '';
$result['url'] = !empty($info['video']['media']['stream']['h264']) ? $info['video']['media']['stream']['h264'][0]['masterUrl'] : '';
}elseif($info['type'] == 'normal'){
$images = [];
foreach($info['imageList'] as $img){
$images[] = $img['urlDefault'];
}
$result['images'] = $images;
}
return $result;
}
}
throw new Exception('视频解析失败');
}
}
+33
View File
@@ -0,0 +1,33 @@
<?php
namespace plugin\utility\videoparse\api;
use Exception;
use plugin\utility\videoparse\api;
class zuiyou implements api
{
public function parse($url){
$url = 'https://api.makuo.cc/api/get.video.zuiyou?url='.urlencode($url);
$header = ['Authorization: '.config_get('yapi_token')];
$data = get_curl($url, 0, 0, 0, 0, 0, 0, $header);
$arr = json_decode($data, true);
if(isset($arr['code']) && $arr['code']==200){
if(isset($arr['data']['url'])){
return [
'title' => $arr['data']['title'],
'author' => $arr['data']['author'],
'avatar' => $arr['data']['avatar'],
'cover' => $arr['data']['cover'],
'url' => $arr['data']['url'],
];
}else{
throw new Exception('解析url返回异常');
}
}elseif(isset($arr['msg'])){
throw new Exception('视频解析失败,'.$arr['msg']);
}else{
throw new Exception('视频解析失败');
}
}
}
+8 -3
View File
@@ -28,10 +28,15 @@
<tbody>
<tr><td class="query-title">视频标题</td><td class="query-result">{{result_info.title}}</td></tr>
<tr v-show="result_info.desc"><td class="query-title">视频描述</td><td class="query-result">{{result_info.desc}}</td></tr>
<tr v-show="result_info.author"><td class="query-title">视频作者</td><td class="query-result">{{result_info.author}}</tr>
<tr v-show="result_info.author"><td class="query-title">视频作者</td><td class="query-result">{{result_info.author}} &nbsp; <a v-show="result_info.avatar" :href="result_info.avatar" target="_blank" rel="noreferrer"><em class="icon ni ni-img"></em></a></tr>
<tr v-show="result_info.time"><td class="query-title">发布时间</td><td class="query-result">{{result_info.time}}</td></tr>
<tr v-show="result_info.cover"><td class="query-title">视频封面</td><td class="query-result"><a :href="result_info.cover" class="btn btn-sm btn-outline-info" target="_blank" rel="noreferrer">点击查看</a> &nbsp; <a @click="copy(result_info.cover)" class="btn btn-sm btn-outline-warning" href="JavaScript:;">点此复制</a></td></tr>
<tr><td class="query-title">视频链接</td><td class="query-result"><a :href="result_info.url" class="btn btn-sm btn-outline-info" target="_blank" rel="noreferrer">点击查看</a> &nbsp; <a @click="copy(result_info.url)" class="btn btn-sm btn-outline-warning" href="JavaScript:;">点此复制</a></td></tr>
<tr v-show="result_info.url"><td class="query-title">视频链接</td><td class="query-result"><a :href="result_info.url" class="btn btn-sm btn-outline-info" target="_blank" rel="noreferrer">点击查看</a> &nbsp; <a @click="copy(result_info.url)" class="btn btn-sm btn-outline-warning" href="JavaScript:;">点此复制</a></td></tr>
<tr v-show="result_info.images"><td class="query-title">图片链接</td><td class="query-result">
<div v-for="(item, index) in result_info.images" :key="index" style="margin-bottom:5px;">
<a :href="item" class="btn btn-sm btn-outline-info" target="_blank" rel="noreferrer">图片{{index+1}}查看</a> &nbsp; <a @click="copy(item)" class="btn btn-sm btn-outline-warning" href="JavaScript:;">点此复制</a>
</div>
</td></tr>
</tbody>
</table>
</div>
@@ -40,7 +45,7 @@
<div class="card-inner">
<h6><em class="icon ni ni-info"></em> 工具说明</h6>
<div class="accordion-inner">
<p>本工具可解析短视频去除水印的下载链接。<br/>目前已支持的视频平台:抖音、头条、西瓜、快手、微博、皮皮虾、小红书、微视、虎牙、秒拍、全民K歌、Acfun等</p>
<p>本工具可解析短视频去除水印的下载链接。<br/>已支持的视频平台:抖音、头条、快手、微博、小红书、微视、虎牙、全民K歌、Acfun等</p>
</div>
</div>
</div>
+31 -9
View File
@@ -62,16 +62,38 @@ class App extends Plugin
}
private function queryapi($domain){
$url = config_get('qqapi_url').'api.php?act=icpquery';
$post = 'key='.config_get('qqapi_key').'&domain='.$domain;
$data = get_curl($url, $post);
$arr = json_decode($data, true);
if(isset($arr['code']) && $arr['code']==0){
return $arr['data'];
}elseif(isset($arr['msg'])){
throw new Exception($arr['msg']);
if(config_get('qqapi_url')){
$url = config_get('qqapi_url').'api.php?act=icpquery';
$post = 'key='.config_get('qqapi_key').'&domain='.$domain;
$data = get_curl($url, $post);
$arr = json_decode($data, true);
if(isset($arr['code']) && $arr['code']==0){
return $arr['data'];
}elseif(isset($arr['msg'])){
throw new Exception($arr['msg']);
}else{
throw new Exception('接口请求失败');
}
}elseif(config_get('yapi_token')){
$url = 'https://api.makuo.cc/api/get.other.icp?url='.urlencode($domain);
$header = ['Authorization: '.config_get('yapi_token')];
$data = get_curl($url, 0, 0, 0, 0, 0, 0, $header);
$arr = json_decode($data, true);
if(isset($arr['code']) && $arr['code']==200){
return [
'Domain' => $arr['data']['domain'],
'DomainIcpNum' => $arr['data']['icp'],
'CompanyName' => $arr['data']['unitName'],
'CompanyType' => $arr['data']['natureName'],
'AuditTime' => $arr['data']['updateRecordTime'],
];
}elseif(isset($arr['msg'])){
throw new Exception('接口请求失败,'.$arr['msg']);
}else{
throw new Exception('接口请求失败');
}
}else{
throw new Exception('接口请求失败');
throw new Exception('请先配置API接口参数');
}
}
+3 -3
View File
@@ -79,15 +79,15 @@ new Vue({
data: {
query_disabled: true,
input: '',
apitype: 'amap',
apitype: 'ip138',
result_input: '',
result_type: 'IP',
showresult: false,
apitypes: [
{
/*{
title: '高德地图',
key: 'amap'
},
},*/
{
title: 'IP138',
key: 'ip138'
+2 -2
View File
@@ -14,7 +14,7 @@ class App extends Plugin
public function index()
{
$logininfo = session('qq_cookie_qzone');
$logininfo = session('qq_cookie_vip');
$error = null;
if($logininfo){
View::assign('isqqlogin', 1);
@@ -34,7 +34,7 @@ class App extends Plugin
$imei = input('post.imei', null, 'trim');
if(!$imei) return msg('error','IMEI不能为空');
$logininfo = session('qq_cookie_qzone');
$logininfo = session('qq_cookie_vip');
if(!$logininfo){
return msg('error', '请先登录');
}
+4 -4
View File
@@ -12,9 +12,9 @@
</div>
<div class="alert alert-info"><em class="icon ni ni-info"></em> 此工具可自定义QQ在线状态设备名,需要SVIP</div>
{if $isqqlogin==0}
<p>当前登录的账号:<b>未登录</b>&nbsp;&nbsp;&nbsp;<a href="/qqlogin?type=qzone&redirect=/{$plugin.alias}" class="btn btn-sm btn-outline-success">立即登录</a></p>
<p>当前登录的账号:<b>未登录</b>&nbsp;&nbsp;&nbsp;<a href="/qqlogin?type=vip&redirect=/{$plugin.alias}" class="btn btn-sm btn-outline-success">立即登录</a></p>
{else}
<p>当前登录的账号:<b>{$logininfo.nickname|raw}{$logininfo.uin}</b>&nbsp;&nbsp;&nbsp;<a href="/qqlogin?type=qzone&redirect=/{$plugin.alias}" class="btn btn-sm btn-outline-success">更换账号</a></p>
<p>当前登录的账号:<b>{$logininfo.nickname|raw}{$logininfo.uin}</b>&nbsp;&nbsp;&nbsp;<a href="/qqlogin?type=vip&redirect=/{$plugin.alias}" class="btn btn-sm btn-outline-success">更换账号</a></p>
{/if}
<div class="form-group">
<div class="input-group input-group-lg">
@@ -56,7 +56,7 @@
<div class="modal-body">
<p>手机QQ打开链接:<a href="https://1105583577.urlshare.cn" target="_blank">https://1105583577.urlshare.cn</a> <button type="button" class="btn btn-outline-light btn-xs copy-btn" data-clipboard-text="https://1105583577.urlshare.cn">点击复制</button></p>
<p>点击“设备信息”</p>
<p>【安卓】找到最后的msflmei参数后面的那一串字母数字。如果没有msflmei参数,则用 identifiera参数</p>
<p>【安卓】找到最后的msflmei参数后面的那一串字母数字。如果没有msflmei参数,则用 identifier参数</p>
<p>【苹果】找到msf_identifier参数后面的那一串字母数字(格式:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)</p>
<img style="width: 100%;" src="https://img.alicdn.com/imgextra/i3/905090405/O1CN01sypnNc1ErX9vUQpeQ_!!905090405.jpg">
</div>
@@ -75,7 +75,7 @@
new Vue({
el: '#app',
data: {
model: 'iPhone 13 Pro Max',
model: 'iPhone 16 Pro Max',
desc: '',
imei: '',
showresult: false,
+25 -9
View File
@@ -49,16 +49,32 @@ class App extends Plugin
}
private function queryapi($uin){
$url = config_get('qqapi_url').'api.php?act=getqqlevel';
$post = 'key='.config_get('qqapi_key').'&uin='.$uin;
$data = get_curl($url, $post);
$arr = json_decode($data, true);
if(isset($arr['code']) && $arr['code']==0){
return $arr['data'];
}elseif(isset($arr['msg'])){
throw new Exception($arr['msg']);
if(config_get('qqapi_url')){
$url = config_get('qqapi_url').'api.php?act=getqqlevel';
$post = 'key='.config_get('qqapi_key').'&uin='.$uin;
$data = get_curl($url, $post);
$arr = json_decode($data, true);
if(isset($arr['code']) && $arr['code']==0){
return $arr['data'];
}elseif(isset($arr['msg'])){
throw new Exception($arr['msg']);
}else{
throw new Exception('接口请求失败');
}
}elseif(config_get('yapi_token')){
$url = 'https://api.makuo.cc/api/get.qq.level?qq='.$uin;
$header = ['Authorization: '.config_get('yapi_token')];
$data = get_curl($url, 0, 0, 0, 0, 0, 0, $header);
$arr = json_decode($data, true);
if(isset($arr['code']) && $arr['code']==200){
return $arr['data'];
}elseif(isset($arr['msg'])){
throw new Exception('接口请求失败,'.$arr['msg']);
}else{
throw new Exception('接口请求失败');
}
}else{
throw new Exception('接口请求失败');
throw new Exception('请先配置API接口参数');
}
}
+1 -1
View File
@@ -6,7 +6,7 @@
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<meta name="renderer" content="webkit"/>
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,500,600,700,800">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/normalize/5.0.0/normalize.min.css">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/normalize/5.0.0/normalize.min.css">
<style>
+5 -5
View File
@@ -10,13 +10,13 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="css/layuimini.css?v=2.0.4.2" media="all">
<link rel="stylesheet" href="css/themes/default.css" media="all">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/font-awesome/4.7.0/css/font-awesome.min.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" media="all">
<!--[if lt IE 9]>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/html5shiv/r29/html5.min.js"></script>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/respond.js/1.4.2/respond.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/html5shiv/r29/html5.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style id="layuimini-bg-color">
</style>
@@ -123,7 +123,7 @@
</div>
</div>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="js/lay-config.js?v=2.0.0" charset="utf-8"></script>
<script src="js/common.js" charset="utf-8"></script>
<script>
+5 -5
View File
@@ -9,10 +9,10 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<!--[if lt IE 9]>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/respond.js/1.4.2/respond.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
html, body {width: 100%;height: 100%;overflow: hidden}
@@ -61,8 +61,8 @@
</div>
</div>
</div>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.6.0/jquery.min.js" charset="utf-8"></script>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/jquery/3.6.0/jquery.min.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="./lib/jq-module/jquery.particleground.min.js" charset="utf-8"></script>
<script>
layui.use(['form'], function () {
+2 -2
View File
@@ -9,7 +9,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<style>
.error .clip .shadow {height:180px;}
.error .clip:nth-of-type(2) .shadow {width:130px;}
@@ -71,7 +71,7 @@
</div>
</div>
</div>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script>
function randomNum() {
return Math.floor(Math.random() * 9) + 1;
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../css/public.css" media="all">
<style>
body {
@@ -62,7 +62,7 @@
<option value="{{item}}">{{item}}</option>
{{# }}}
</script>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../js/common.js" charset="utf-8"></script>
<script src="../js/api.js" charset="utf-8"></script>
<script>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../css/public.css" media="all">
<script src="../js/common.js" charset="utf-8"></script>
</head>
@@ -54,7 +54,7 @@
</div>
</div>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../js/api.js" charset="utf-8"></script>
<script>
layui.use(['form', 'table'], function () {
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../../css/public.css" media="all">
<style>
body {
@@ -55,7 +55,7 @@
</div>
</div>
</form>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../../js/api.js?v=1.0.0" charset="utf-8"></script>
<script src="../../js/common.js?v=1.0.0" charset="utf-8"></script>
<script>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../../css/public.css" media="all">
<style>
body {
@@ -62,7 +62,7 @@
</div>
</div>
</form>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../../js/api.js?v=1.0.0" charset="utf-8"></script>
<script src="../../js/common.js?v=1.0.0" charset="utf-8"></script>
<script>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../css/public.css" media="all">
<script src="../js/common.js" charset="utf-8"></script>
</head>
@@ -63,7 +63,7 @@
</div>
</div>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../js/lay-config.js?v=2.0.0" charset="utf-8"></script>
<script src="../js/api.js" charset="utf-8"></script>
<script>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../../css/public.css" media="all">
<style>
body {
@@ -62,7 +62,7 @@
</div>
</div>
</form>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../../js/api.js?v=1.0.0" charset="utf-8"></script>
<script src="../../js/common.js?v=1.0.0" charset="utf-8"></script>
<script>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
<link rel="stylesheet" href="../css/public.css" media="all">
<style>
@@ -186,7 +186,7 @@
</script>
<!--</div>-->
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../js/lay-config.js?v=1.0.4" charset="utf-8"></script>
<script src="../js/common.js" charset="utf-8"></script>
<script src="../js/api.js" charset="utf-8"></script>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../css/public.css" media="all">
<script src="../js/common.js" charset="utf-8"></script>
</head>
@@ -55,7 +55,7 @@
</div>
</div>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../js/api.js" charset="utf-8"></script>
<script>
layui.use(['form', 'table'], function () {
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../../css/public.css" media="all">
<style>
body {
@@ -53,7 +53,7 @@
</div>
</div>
</form>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../../js/api.js?v=1.0.0" charset="utf-8"></script>
<script src="../../js/common.js?v=1.0.0" charset="utf-8"></script>
<script>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../../css/public.css" media="all">
<style>
body {
@@ -60,7 +60,7 @@
</div>
</div>
</form>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../../js/api.js?v=1.0.0" charset="utf-8"></script>
<script src="../../js/common.js?v=1.0.0" charset="utf-8"></script>
<script>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../css/public.css" media="all">
<script src="../js/common.js" charset="utf-8"></script>
<style>
@@ -90,7 +90,7 @@
</div>
</div>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../js/api.js" charset="utf-8"></script>
<script>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../../css/public.css" media="all">
<style>
body {
@@ -117,7 +117,7 @@
{{# }); }}
</select>
</script>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../../js/api.js?v=1.0.0" charset="utf-8"></script>
<script src="../../js/common.js?v=1.0.0" charset="utf-8"></script>
<script>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../../css/public.css" media="all">
<style>
body {
@@ -124,7 +124,7 @@
{{# }); }}
</select>
</script>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../../js/api.js?v=1.0.0" charset="utf-8"></script>
<script src="../../js/common.js?v=1.0.0" charset="utf-8"></script>
<script>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../../css/public.css" media="all">
<link rel="stylesheet" href="../../js/lay-module/step-lay/step.css" media="all">
</head>
@@ -123,7 +123,7 @@
{{# }); }}
</select>
</script>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../../js/lay-config.js?v=1.0.4" charset="utf-8"></script>
<script src="../../js/api.js" charset="utf-8"></script>
<script src="../../js/common.js" charset="utf-8"></script>
+9 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../css/public.css" media="all">
<style>
body {
@@ -125,6 +125,13 @@
<input type="text" name="captcha_key" placeholder="请输入极验KEY" class="layui-input">
</div>
</div>
<blockquote class="layui-elem-quote"><a href="https://api.makuo.cc/" target="_blank">Yapi接口</a>配置(配置了此密钥就可不用填写下方QQ-API配置)</blockquote>
<div class="layui-form-item">
<label class="layui-form-label">API Token:</label>
<div class="layui-input-block">
<input type="text" name="yapi_token" placeholder="请输入API Token" class="layui-input">
</div>
</div>
<blockquote class="layui-elem-quote"><a href="https://github.com/netcccyun/qqapi" target="_blank">QQ-API</a>接口配置(ICP备案查询、QQ等级查询等工具使用)</blockquote>
<div class="layui-form-item">
<label class="layui-form-label">接口地址:</label>
@@ -172,7 +179,7 @@
<option value="{{item}}">{{item}}</option>
{{# }}}
</script>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../js/common.js" charset="utf-8"></script>
<script src="../js/api.js" charset="utf-8"></script>
<script>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../css/public.css" media="all">
<style>
body {
@@ -63,7 +63,7 @@
</div>
</div>
</div>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../js/common.js" charset="utf-8"></script>
<script src="../js/api.js" charset="utf-8"></script>
<script>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../css/public.css" media="all">
<script src="../js/common.js" charset="utf-8"></script>
</head>
@@ -70,7 +70,7 @@
</div>
</div>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../js/lay-config.js?v=2.0.0" charset="utf-8"></script>
<script src="../js/api.js" charset="utf-8"></script>
<script>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="https://s4.zstatic.net/ajax/libs/layui/2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="../css/public.css" media="all">
<script src="../js/common.js" charset="utf-8"></script>
</head>
@@ -63,7 +63,7 @@
</div>
</div>
<script src="//lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="https://s4.zstatic.net/ajax/libs/layui/2.6.3/layui.js" charset="utf-8"></script>
<script src="../js/api.js" charset="utf-8"></script>
<script>
+5 -5
View File
@@ -5,11 +5,11 @@
<link rel="icon" href="/favicon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link href="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/daisyui/2.2.2/full.min.css" rel="stylesheet" type="text/css"/>
<link href="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet" type="text/css"/>
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/limonte-sweetalert2/11.4.4/sweetalert2.all.min.js"></script>
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/2.6.14/vue.min.js"></script>
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/axios/0.26.0/axios.min.js"></script>
<link href="https://s4.zstatic.net/ajax/libs/daisyui/2.2.2/full.min.css" rel="stylesheet" type="text/css"/>
<link href="https://s4.zstatic.net/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet" type="text/css"/>
<script src="https://s4.zstatic.net/ajax/libs/limonte-sweetalert2/11.4.4/sweetalert2.all.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/vue/2.6.14/vue.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/axios/0.26.0/axios.min.js"></script>
<style>
body {
background-image: url("static/images/install_background.jpg");