学习笔记

导航

 

用户的proxy帐号里api key要设置好,那个key设置后是不显示的,但会显示已设置

key是自已随便生成的

$uid = 22222;
                $skey = 'langansafe&*#';
                $time = time();
                $vhost = 'liuwei';
                $data = array(
                                'uid'=>$uid,
                                't'=>$time,
                                'skey'=>$skey,
                                'vhost'=>$vhost,
                                'sign'=>md5(md5($uid.$skey).$time),
                );
                $url = "https://www.test.com/api2/site/index.php/token";
                $str = $this->curl($url,$data);
                $re = json_decode($str,true);
                return $re;

 

posted on 2018-06-14 15:26  weizy81  阅读(430)  评论(0编辑  收藏  举报