$sId,"skey"=>$sKey); $result=sendPost("https://center.ghink.net/v1/interface/api.php?type=appToken",$data); $result=json_decode($result,true); if($result["status"]=="success"){ return $result["token"]; }else{ return false; } } //取回用户Token function getTokenUsr($token,$tid){ $data=array("token"=>$token,"tid"=>$tid); $result=sendPost("https://center.ghink.net/v1/interface/api.php?type=authBack",$data); $result=json_decode($result,true); if($result["status"]=="success"){ return $result["token"]; }else{ return false; } } }