| 
					
				 | 
			
			
				@@ -23,7 +23,7 @@ module.exports = options => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (!code || !sign || !time) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 throw '参数有误'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (parseFloat(time + 86400 * 1000) < new Date().getTime()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if ((parseFloat(time) + 86400 * 1000) < new Date().getTime()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 throw '时间参数已过期'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const data = yield this.service.project.getProjectByCode(code.toString().trim()); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -33,6 +33,9 @@ module.exports = options => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (data.custom === 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 throw '无法通过接口登录本系统'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (data.custom === 1 && data.can_api === 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                throw '接口已关闭,无法使用'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const encryptSign = crypto.createHash('md5').update(data.code + data.secret + time.toString()).digest('hex').toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (encryptSign !== sign) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 throw '参数验证失败'; 
			 |