예제 #1
0
파일: test.php 프로젝트: GStepOne/CI
//		'passwd'    => '123456789',//应用查参数,快递单号
//);
//remote::$open_debug=1;
//$result = remote::send($data);
//print_r($result);
//print_r(json_decode($result,true));unset($result);//这里可以得到uid
//$session_id = remote::$session_id;//获取session_id
//echo $session_id;
////print_r(remote::$debug);
////print_r($result);
////echo "\n\n";
//echo "<hr>";
//exit;
////
$data = array('sname' => 'user.findpwd', 'mobile' => '13817524337');
remote::$open_debug = 1;
$result = remote::send($data);
print_R($result);
exit;
////调用dts接口
//$data = array(
//		'sname' => 'user.reg',//系统参数,调用接口
//		'mobile' => '13100030002',
//                'passwd' =>"111111",
//                'recommended' =>'18521362829',
//);
//
//remote::$open_debug=1;
//$result = remote::send($data);print_r($result);
//$result = json_decode($result,true);
//
예제 #2
0
function transferAPI($data, $time = 5, $headers = array(), $return = 'body')
{
    core::Singleton('comm.remote.remote');
    remote::$open_debug = openDebug;
    // 判断 登陆的 登陆后把 cookie 发送 出去 呀!
    $temp = is_login();
    $headers = $temp == false ? $headers : $temp;
    $result = remote::send($data, $time, $headers, $return);
    return json_decode($result, TRUE);
}