代码拉取完成,页面将自动刷新
同步操作将从 徐子玉/品贷网 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php
include_once 'config.php';
include_once 'user_head.php';
include_once 'userinfo_head.php';
include_once 'user_right.php';
include_once 'indent_left.php';
include_once 'sidebar.php';
include_once 'foot.php';
header ("Content-Type: text/html; charset=UTF-8");
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");
error_reporting(E_ERROR | E_WARNING | E_PARSE);
if ($user_id > 0)
{
$client = new SoapClient($GLOBAL_REMOTE_API);
$parms = array("proxyId"=>$user_id);
$result = $client->CRM_getMyProxy($parms);
if(!is_soap_fault($getProduct_result))
{
//获取产品信息
$agentResult = $result->CRM_getMyProxyResult;
$agentResultArray = json_decode($agentResult, TRUE);
//开始解析
//获取产品信息
$agent_totalCount = $agentResultArray[0]['totalCount'];
$agent_success = $agentResultArray[0]['success'];
$agent_data = $agentResultArray[0]['data'];
if ($agent_totalCount > 0 && $agent_success == true)
{
//我的代理信息
$agenthtml = '';
$filename = "myagent_temp.html";
$file = @fopen($filename,"r");
if ($file) {
$contents = @fread($file, filesize($filename));
//我的代理信息
foreach($agent_data as $key=>$d){
$Abbreviation = $agent_data[$key]['Abbreviation'];
$FactoryName = $agent_data[$key]['FactoryName'];
$Telphone = $agent_data[$key]['Telphone'];
$Address = $agent_data[$key]['Address'];
$ListPic = $agent_data[$key]['ListPic'];
$ProxyInfo = $agent_data[$key]['ProxyInfo'];
$PicUrl = "store.php?id=" . $agent_data[$key]['FactoryId'];
$buttonUrl = "store_info.php?id=" . $agent_data[$key]['FactoryId'];
$agent_html = str_replace("{\$Abbreviation}", $Abbreviation, $contents);
$agent_html = str_replace("{\$FactoryName}", $FactoryName, $agent_html);
$agent_html = str_replace("{\$Telphone}", $Telphone, $agent_html);
$agent_html = str_replace("{\$Address}", $Address, $agent_html);
$agent_html = str_replace("{\$ListPic}", $ListPic, $agent_html);
$agent_html = str_replace("{\$ProxyInfo}", $ProxyInfo, $agent_html);
$agent_html = str_replace("{\$pic_url}", $PicUrl, $agent_html);
$agent_html = str_replace("{\$button_url}", $buttonUrl, $agent_html);
$agent_htmlArr[] = $agent_html;
}
fclose($file);
}
$agenthtml = implode('', $agent_htmlArr);
}
//输出模板
$filename = "myagent.html";
$file = @fopen($filename,"r");
if ($file) {
$contents = @fread($file, filesize($filename));
$contents = str_replace("{\$agenthtml}", $agenthtml, $contents);
$contents = str_replace("{\$indentleft_html}", $indentleft_html, $contents);
$contents = str_replace("{\$user_head_html}", $user_head_html, $contents);
$contents = str_replace("{\$userinfo_head_html}", $userinfo_head_html, $contents);
$contents = str_replace("{\$sidebar_html}", $sidebar_html, $contents);
// $contents = str_replace("{\$userright_html}", $userright_html, $contents);
$contents = str_replace("{\$foot_html}", $foot_html, $contents);
echo $contents;
fclose($file);
}
}
}
else
{
header("Location: login.html");
}
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。