From e06b2b143c2f4bab8a5fd8497f70fa897ce8c13c Mon Sep 17 00:00:00 2001
From: 付智勇 <fuzhiyong@efangtec.com>
Date: Wed, 6 Sep 2017 16:53:34 +0800
Subject: [PATCH] no message

---
 util/inspectMediaChannelKey.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/util/inspectMediaChannelKey.js b/util/inspectMediaChannelKey.js
index 42a747a..c6214cb 100644
--- a/util/inspectMediaChannelKey.js
+++ b/util/inspectMediaChannelKey.js
@@ -3,10 +3,10 @@ var crypto = require('crypto');
 var appID  = "970ca35de60c44645bbae8a215061b33";//传参
 var appCertificate = "5cfd2fd1755d40ecb72977518be15d3b";//传参
 var channel = "7d72365eb983485397e3e3f9d460bdda"; //传参
-var ts = 1446455472;
+var ts = new Date().getTime()/1000;
 var r = 58964981;
 var uid=2882341273; //传参
-var expiredTs=1446455471;
+var expiredTs=(new Date().getTime()+1000*60*60*24*7)/1000;
 
 var version = "005";
 var noUpload = "0";
@@ -71,7 +71,6 @@ var inspectMediaChannelKey = function async(appID, appCertificate, channelName, 
     
         that.putUint16 = function(v) {
             try {
-                console.log(typeof v)
                 that.buffer.writeUInt16LE(v, that.position);
                 that.position += 2;
             } catch (error) {
--
libgit2 0.24.0