|  | @@ -61,7 +61,6 @@ let Wechat = {
 | 
	
		
			
				|  |  |                                  callback.call(_this,new Error('Wechat getJsApiTicket error!'),null);
 | 
	
		
			
				|  |  |                                  return;
 | 
	
		
			
				|  |  |                              }
 | 
	
		
			
				|  |  | -                            console.log(body);
 | 
	
		
			
				|  |  |                              if(body.errcode){
 | 
	
		
			
				|  |  |                                  callback(_this,errcode,errcode[body.errcode]);
 | 
	
		
			
				|  |  |                              }
 | 
	
	
		
			
				|  | @@ -92,7 +91,7 @@ let Wechat = {
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              let combineStr = `jsapi_ticket=${ticket}&noncestr=${noncestr}×tamp=${timestamp}&url=${url}`;
 | 
	
		
			
				|  |  |              let signature = sha1(combineStr);
 | 
	
		
			
				|  |  | -            callback.call(_this,null,{noncestr:noncestr,timestamp:timestamp,signature:signature});
 | 
	
		
			
				|  |  | +            callback.call(_this,null,{nonceStr:noncestr,timestamp:timestamp,signature:signature});
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 | 
	
	
		
			
				|  | @@ -135,7 +134,7 @@ function setTokenToCahe(token,expires){
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          return;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -    let expiresTime = Moment().valueOf() + expires;
 | 
	
		
			
				|  |  | +    let expiresTime = Math.floor(Moment().valueOf()/1000) + expires;
 | 
	
		
			
				|  |  |      FILE.writeFileSync(tmpTokenFile,JSON.stringify({token:token,expires:expiresTime}),'UTF-8');
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -175,6 +174,6 @@ function setTicketToCahe(ticket,expires){
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          return;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -    let expiresTime = Moment().valueOf() + expires;
 | 
	
		
			
				|  |  | +    let expiresTime = Math.floor(Moment().valueOf()/1000) + expires;
 | 
	
		
			
				|  |  |      FILE.writeFileSync(tmpTicketFile,JSON.stringify({ticket:ticket,expires:expiresTime}),'UTF-8');
 | 
	
		
			
				|  |  |  }
 |