mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
优化app 不能问题
This commit is contained in:
parent
138c3ffb18
commit
03e040d6cf
@ -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字符串
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user