lint fix
This commit is contained in:
@@ -81,7 +81,7 @@ export default {
|
||||
return Promise.resolve({
|
||||
list,
|
||||
allPage: this.allPage,
|
||||
limit: limit,
|
||||
limit,
|
||||
total: this.total,
|
||||
source: 'bd',
|
||||
})
|
||||
|
||||
@@ -66,7 +66,7 @@ export default {
|
||||
},
|
||||
}
|
||||
let encrypted = CryptoJS.AES.encrypt(strData, key, {
|
||||
iv: iv,
|
||||
iv,
|
||||
blockSize: 16,
|
||||
mode: CryptoJS.mode.CBC,
|
||||
format: JsonFormatter,
|
||||
@@ -74,9 +74,9 @@ export default {
|
||||
let ciphertext = encrypted.toString().ct
|
||||
let sign = toMD5('baidu_taihe_music' + ciphertext + timestamp)
|
||||
let jsonRet = {
|
||||
timestamp: timestamp,
|
||||
timestamp,
|
||||
param: ciphertext,
|
||||
sign: sign,
|
||||
sign,
|
||||
}
|
||||
return jsonRet
|
||||
},
|
||||
|
||||
@@ -19,7 +19,7 @@ const aesDecrypt = function(cipherBuffer, mode, key, iv) {
|
||||
|
||||
const rsaEncrypt = (buffer, key) => {
|
||||
buffer = Buffer.concat([Buffer.alloc(128 - buffer.length), buffer])
|
||||
return publicEncrypt({ key: key, padding: constants.RSA_NO_PADDING }, buffer)
|
||||
return publicEncrypt({ key, padding: constants.RSA_NO_PADDING }, buffer)
|
||||
}
|
||||
|
||||
export const weapi = object => {
|
||||
|
||||
Reference in New Issue
Block a user