/** * 本地验证 * @param type $ssid * @param type $result * @return type */ public static function sendVerifyLocalRequest($ssid, $result) { $mass = self::context('yuc_mass', NULL, ''); $code = YucCrypt::decrypt(base64_decode(urldecode($mass)), YucMath::erypt_key()); $code = str_replace(",", "", $code); if ($code != '' && strtolower($code) === strtolower($result)) { self::$_result = 1; self::$_code = ''; self::$_details = '验证码输入正确'; } else { self::$_result = 0; self::$_code = 'E_LOCALVALID_001'; self::$_details = '验证码验证失败'; } YLog::Write('本地验证完成,输入结果为:' . $result . ';' . '', YLog::DEBUG); }