-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxring.php
More file actions
34 lines (29 loc) · 775 Bytes
/
xring.php
File metadata and controls
34 lines (29 loc) · 775 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
29
30
31
32
33
34
<?php
/*
* 讯飞合作铃声跳转
* 方法: POST 协议
*
*/
require_once 'lib/WriteLog.lib.php';
try{
require_once 'configs/config.php';
$tag = isset($_GET['tag'])?$_GET['tag']:'xunfei';
global $g_arr_xring_config;
$url = $g_arr_xring_config[$tag];
if($tag == 'ss'){
$word = isset($_GET['word'])?$_GET['word']:'';
$url = sprintf($url, $word);
}
header('location: '.$url);
#采用主题上报,这里不需要统计
// require_once 'tasks/Records/RecordTask.class.php';
// $rt = new RecordTask();
// $rt->saveXRequest(COOLXIU_TYPE_X_RING);
}catch(Exception $e){
Log::write("ring::Exception Error:".$e->getMessage(), "log");
echo json_encode(array('total_number'=>-1,
'rst_number'=>0)
);
exit;
}
?>