/** * 验算二次tokenhash是否正确 * @param string $type 类型,可选值:g/p/c/r * @return bool */ function checkSecFormhash($type = 'p') { if (XWB_plugin::V($type . ':' . XWB_TOKEN_NAME) != xwb_token::makeSecFormhash()) { return false; } else { return true; } }