From 03e040d6cf4c308bda238dda866820beb46631e0 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Wed, 30 Dec 2020 09:59:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96app=20=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- factory/WexinAppPayFactory.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/factory/WexinAppPayFactory.js b/factory/WexinAppPayFactory.js index 4ff8973..aa81e7f 100644 --- a/factory/WexinAppPayFactory.js +++ b/factory/WexinAppPayFactory.js @@ -7,10 +7,10 @@ import md5 from '../utils/md5Util.js' * @params orderInfo: any 后端返回的数据,格式和上面一样 */ export function getPayInfo (orderInfo) { - let time = new Date(), - let timestamp = time.getTime().toString().substr(0, 10), // 时间戳 - let noncestr = randomSrt(true, 10, 20), // 随机数 - let key = conf.appPayKey, // 加密Key,微信支付填写的key + let time = new Date(); + let timestamp = time.getTime().toString().substr(0, 10); // 时间戳 + let noncestr = randomSrt(true, 10, 20); // 随机数 + let key = conf.appPayKey; // 加密Key,微信支付填写的key payInfo = { appid: orderInfo.appid, noncestr, @@ -54,7 +54,7 @@ export function randomSrt(isRandomLength, min, max) { str += arr[pos]; } return str; -}, +} /* * 根据object生成key value字符串