代码拉取完成,页面将自动刷新
<?php
session_start();
$user_id = isset($_SESSION["userid"]) ? $_SESSION["userid"] : 0;
$ProxyName = "";
$phoneNumber = "";
$authStatus = "";
if($user_id > 0)
{
$client = new SoapClient($GLOBAL_REMOTE_API); //开始调用接口
$user_head_parms = array("userProxyId"=>$user_id);
$user_head_result = $client->userGetInfo($user_head_parms); //Response->Result
//获取用户信息
$userGetInfoResult = $user_head_result->userGetInfoResult;
$userGetInfoResultArray = json_decode($userGetInfoResult, TRUE);
//开始解析
//获取用户信息
$userGetInfo_totalCount = $userGetInfoResultArray[0]['totalCount'];
$userGetInfo_success = $userGetInfoResultArray[0]['success'];
$userGetInfo_data = $userGetInfoResultArray[0]['data'];
if ($userGetInfo_totalCount > 0 && $userGetInfo_success == true)
{
$ProxyName = $userGetInfo_data[0]['ProxyName'];
$phoneNumber = $userGetInfo_data[0]['phoneNumber'];
$authStatus = $userGetInfo_data[0]['authStatus'];
}
}
$localurl = $_SERVER['PHP_SELF'];
$localarg = $_SERVER["REQUEST_URI"];//$_SERVER["SERVER_NAME"] .
$user_head_html = '';
$filename = "user_head.html";
$file = @fopen($filename,"r");
if ($file) {
$contents = @fread($file, filesize($filename));
$head_html = $contents;
$head_html = str_replace("{\$user_id}", $user_id, $head_html);
$head_html = str_replace("{\$ProxyName}", $ProxyName, $head_html);
$head_html = str_replace("{\$phoneNumber}", $phoneNumber, $head_html);
$head_htmlArr[] = $head_html;
fclose($file);
}
$user_head_html = implode('', $head_htmlArr); //将切开后的字符串返回到数组变量中
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。