function onajaxzc() { if (isset($this->post['order_id'])) { $key = 'asSDF,dj_s675G2323,sjds'; $sign = md5($this->ask_front_id . trim($this->post['order_id']) . $key); $zc_url = "http://join.5173.com/arbitration/Isarbitration.aspx?" . "orderid=" . $this->post['order_id'] . "&userid=" . $this->ask_front_id . "&sign=" . $sign; $rs = topen($zc_url); echo $rs; } }
function get_realname($user_id) { $r_url = "http://usercenter.5173esb.com/Service/GetRealNameForSc?UserId=" . $user_id; $r_rs = topen($r_url); $r_result = base64_decode($r_rs); return $r_result; }
function send_SMS($author_id) { $msg_switch_off = $this->db->result_first("SELECT v FROM " . DB_TABLEPRE . "setting WHERE k='msg_switch_off'"); if ($msg_switch_off == 1) { $m_url = "http://usercenter.5173esb.com/service/GetUserBindMobileForSc?UserId=" . $author_id; $m_rs = topen($m_url); $m_result = base64_decode($m_rs); if (!empty($m_result)) { $key = "KFYTH"; $clientIP = $_SERVER["SERVER_ADDR"]; $category = "7028"; $mobile = $m_result; $msg_content = $this->db->result_first("SELECT v FROM " . DB_TABLEPRE . "setting WHERE k='msg_content'"); $content = urlencode($msg_content); $sign = md5($key . $clientIP); $url = vsprintf("http://mobile.5173.com/MobileAPI/SendSingleMessage?m_sign=%s&m_clientIP=%s&category=%s&mobile=%s&content=%s", array($sign, $clientIP, $category, $mobile, $content)); $rs = topen($url); $result = json_decode($rs, true); if ($result['ResultNo'] != 0) { send_AIC('http://scadmin.5173.com', $result['ResultDescription'], 1, '手机短信接口'); } } } }