/**
* api token校验
* $token token 字符串
* $path 当前访问路径
*
*/
public function checkToken($token,$path){
$token_server = md5(strtolower($path.date("YmdH").C("tokenstr")));
if(!strcasecmp($token,$token_server)){
return true;
}else{
$this->setReturnValue(0, 'token 验证失败', null);
}
}