NOTICE: Trying to access array offset on value of type null in /www/wwwroot/www.phoenixfm.cn/protected/controller/pc/BaseController.php on line 48
- /www/wwwroot/www.phoenixfm.cn/protected/lib/speed.php on line 525
520.
$msg = "ERROR";
521.
if($errno == E_WARNING)$msg = "WARNING";
522.
if($errno == E_NOTICE)$msg = "NOTICE";
523.
if($errno == E_STRICT)$msg = "STRICT";
524.
if($errno == 8192)$msg = "DEPRECATED";
525.
526.
err("$msg: $errstr in $errfile on line $errline");
}
527.
function err($msg){
528.
$msg = htmlspecialchars($msg);
529.
$traces = debug_backtrace();
530.
if(!empty($GLOBALS['err_handler'])){
- /www/wwwroot/www.phoenixfm.cn/protected/controller/pc/BaseController.php on line 48
43.
$api_ip = "https://qifu-api.baidubce.com/ip/geo/v1/district?ip=".$ip;
44.
$res_address = sendGet($api_ip);
45.
$this->wearher = "";
46.
if(!empty($res_address)){
47.
$res_address = json_decode($res_address,true);
48.
49.
if($res_address["code"] == "Success"){
// 获取天气预报
50.
$this->city = $res_address["data"]["city"];
51.
$this->prov = $res_address["data"]["prov"];
52.
$api_simpleWeather = "http://apis.juhe.cn/simpleWeather/query?city=".urlencode(str_replace("市","",$res_address["data"]["city"]))."&key=f294ec64c69b2ab7b3b9ca1b58719a66";
53.
$weather_res = sendGet($api_simpleWeather);
- /www/wwwroot/www.phoenixfm.cn/protected/controller/pc/MainController.php on line 106
101.
];
102.
}
103.
}
104.
class MainController extends BaseController {
105.
function __construct(){
106.
107.
parent::__construct();
}
108.
function actionCreateStaticIndex(){
109.
// 获取智能体展示区数据
110.
$this->agentData = $this->getAgentDisplayData();
111.
// print_r($this->agentData);exit();
- /www/wwwroot/www.phoenixfm.cn/protected/lib/speed.php on line 95
90.
header("Location:".$url);
91.
exit;
92.
};
93.
if(!method_exists($controller_name, $action_name))_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
94.
95.
96.
$controller_obj = new $controller_name();
$controller_obj->$action_name();
97.
98.
if($controller_obj->_auto_display){
99.
$auto_tpl_name = (empty($__module) ? '' : $__module.DS).$__controller.'_'.$__action.'.html';
100.
if(file_exists(APP_DIR.DS.'protected'.DS.'view'.DS.$auto_tpl_name))$controller_obj->display($auto_tpl_name);
- /www/wwwroot/www.phoenixfm.cn/index.php on line 8
3.
header('Access-Control-Allow-Origin: *');
4.
header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
5.
header('Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With');
6.
define('APP_DIR', realpath('./'));
7.
define("APP_PATH",dirname(__FILE__));
8.
require(APP_DIR.'/protected/lib/speed.php');