优化app 不能问题

This commit is contained in:
java110 2020-12-30 09:59:38 +08:00
parent 138c3ffb18
commit 03e040d6cf

View File

@ -7,10 +7,10 @@ import md5 from '../utils/md5Util.js'
* @params orderInfo: any 后端返回的数据格式和上面一样 * @params orderInfo: any 后端返回的数据格式和上面一样
*/ */
export function getPayInfo (orderInfo) { export function getPayInfo (orderInfo) {
let time = new Date(), let time = new Date();
let timestamp = time.getTime().toString().substr(0, 10), // 时间戳 let timestamp = time.getTime().toString().substr(0, 10); // 时间戳
let noncestr = randomSrt(true, 10, 20), // 随机数 let noncestr = randomSrt(true, 10, 20); // 随机数
let key = conf.appPayKey, // 加密Key微信支付填写的key let key = conf.appPayKey; // 加密Key微信支付填写的key
payInfo = { payInfo = {
appid: orderInfo.appid, appid: orderInfo.appid,
noncestr, noncestr,
@ -54,7 +54,7 @@ export function randomSrt(isRandomLength, min, max) {
str += arr[pos]; str += arr[pos];
} }
return str; return str;
}, }
/* /*
* 根据object生成key value字符串 * 根据object生成key value字符串