Skip to content

Commit

Permalink
fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
pigLoveRabbit520 committed Dec 9, 2020
1 parent 23f33a5 commit 570d3cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util.js
Expand Up @@ -50,9 +50,9 @@ exports.replaceJSONCtlChars = function (str) {
* @param {string} sessionKey
* @param {string} iv
* @param {string} encryptedData
* @returns {Promise<Object>}
* @returns {Object}
*/
exports.decryptDataForMiniProgram = async function (sessionKey, iv, encryptedData) {
exports.decryptDataForMiniProgram = function (sessionKey, iv, encryptedData) {
const sessionKeyBuffer = Buffer.from(sessionKey, 'base64');
const ivBuffer = Buffer.from(iv, 'base64');
const encryptedBuffer = Buffer.from(encryptedData, 'base64');
Expand Down

0 comments on commit 570d3cd

Please sign in to comment.