Web/image/public.js

(开头部分) 30KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/**
 * login auth
 * rely on jquery && jquery.cookie
 **/

var Auth = window.Auth || {};
Auth = {
	init: function(){
		var _au = this.getAuthInfo();		
		if( _au ){		
			this.renderingLoginBar( _au );
		}
		this.msgHover();
		this.gotoLogin();
	},	
	getAuthInfo: function(){
		
		var _authCookie = $.cookie('auth'),
		    _sessionCookie = $.cookie('session');

		if( !_authCookie || !_sessionCookie ){
			return null;
		}
		
		/*if( _authCookie.indexOf('~') != -1 ){
			return null;
		}*/
		
		_auth = $.parseJSON( _authCookie );
		
		try{
			returnValue = $.parseJSON( _auth );
		}
		catch(e){ returnValue = null; }
		
		return returnValue;
	
	},
	
	renderingLoginBar: function( auth ){
		
		var $proTool=$('.pro-tool-status');	
				
		if( ! auth ){
			$.ajax({
				url: 'http://login.okhqb.com/member/getLoginInfo.json?callback=?',
				dataType: 'json',
				success: function( result ){
					if( result.code == 200 ){
						this.getMsg();
						var result_data = $.parseJSON( result.data );					
						if( result_data.logined == 0 ){							
							_unLoginBar.show();
							_loggedBar.hide();					
						}else{
							var nickname = result_data.nickname,
								_href = '';
								
							if( result_data.sys_register == 7 ){
								nickname = result_data.mobile;
后面还有 861 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。