/** * 获取校验结果 * @return type */ public function run() { $ret = Verify::getVerifyResult(); $back_result = array('code' => Verify::getCode(), 'result' => Verify::getResult(), 'details' => Verify::getDetails()); echo 'yuc_site_config.ajaxresult=' . json_encode($back_result); }
<?php require_once __DIR__ . '/../../../library/bootstrap.php'; $verify = new Verify(); Session::set('check_code', $verify->getCode()); $verify->output();