Initial commit
Some checks failed
定时更新GitHub源插件 / 自动更新GitHub插件 (push) Has been cancelled

This commit is contained in:
chorblack
2026-03-07 11:19:25 +08:00
commit e75f275ef4
4484 changed files with 645480 additions and 0 deletions

28
YoduPlayer/Action.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
use Typecho\widget;
class YoduPlayer_Action extends Typecho_Widget implements Widget_Interface_Do {
public function execute() {
//Do
}
public function action()
{
$rewrite='';if(Helper::options()->rewrite==0){$rewrite='index.php/';}
$apiurl=Helper::options()->rootUrl.'/'.$rewrite.'yoduapi';
// 设置API路径
define('API_URI', $apiurl);
// 设置中文歌词
define('TLYRIC', true);
// 设置歌单文件缓存及时间
define('CACHE', true);
define('CACHE_TIME', 86400);
// 设置短期缓存-需要安装apcu
define('APCU_CACHE', false);
// 设置AUTH密钥-更改'meting-secret'
define('AUTH', true);
define('AUTH_SECRET', Helper::options()->Plugin('YoduPlayer')->auth);
include('jx.php');
}
}
?>