Commit 33f637e1 by ken

balance

parent 7013d89c
......@@ -28,7 +28,7 @@ const _handleSocketOpen = function(opened_callback) {
}
let accountReq = `{'accesskey':'${APIKEY}','channel':'${accountInfoChannel}','event':'addChannel'`;
const sign = crypto.createHmac('sha1', APISECRET).update(accountReq).digest().toString('base64');
accountReq += `,'sign':${sign}`;
accountReq += `,'sign':'${sign}'`;
console.log(accountReq);
this.send(accountReq);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment