|
|
|
@ -91,7 +91,7 @@ wss.on('connection', ws => {
|
|
|
|
|
if (xhr.readyState === 4) {
|
|
|
|
|
switch(xhr.status) {
|
|
|
|
|
case 200:
|
|
|
|
|
let ran_key = get_key(8)
|
|
|
|
|
let ran_key = get_key(4)
|
|
|
|
|
//write to redis
|
|
|
|
|
redis_cli.hmset("surl;"+ran_key, "url", msg[1], "time", Date.now())
|
|
|
|
|
ws.send('surl;'+host+ran_key)
|
|
|
|
|