forked from typecho-fans/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAction.php
More file actions
28 lines (26 loc) · 766 Bytes
/
Copy pathAction.php
File metadata and controls
28 lines (26 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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');
}
}
?>