diff --git a/SrcJyAlist.js b/SrcJyAlist.js index f51e701e..91aeb7a7 100644 --- a/SrcJyAlist.js +++ b/SrcJyAlist.js @@ -1077,13 +1077,17 @@ function aliSharePlayUrl(share_id, file_id, alitoken){ let userId = userinfo.user_id; let signature; let public_key; - + /* let getaliecc = JSON.parse(request('http://124.221.241.174:87/api', { body: 'did=' + deviceId + '&uid=' + userId + '&token=' + md5(getNowTime()), method: 'POST', timeout: 3000 })); if (getaliecc.code == 200) { signature = getaliecc.sign; public_key = getaliecc.key; } - + */ + let a = justTestSign('5dde4e1bdf9e4966b387ba58f4b3fdc3',deviceId,userId); + signature = a.split('##')[0]; + public_key = a.split('##')[1]; + headers['authorization'] = authorization; headers['x-device-id'] = deviceId; headers['x-signature'] = signature;