/* | |||||
* @Author: gaorf30153 gaorf30153@hundsun.com | |||||
* @Date: 2024-06-26 08:41:43 | |||||
* @LastEditors: gaorf30153 gaorf30153@hundsun.com | |||||
* @LastEditTime: 2024-06-26 08:59:33 | |||||
* @FilePath: \wxminipro\miniprogram\functional-pages\request-payment.js | |||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | |||||
*/ | |||||
exports.beforeRequestPayment = function (paymentArgs, callback) { | |||||
// 自定义的参数,此处应为从插件传递过来的 paymentArgs | |||||
console.log(paymentArgs) | |||||
var error = null | |||||
var requestPaymentArgs = { | |||||
//该对象为下单所需参数,以后端接口返回的为准!! | |||||
timeStamp: paymentArgs.timeStamp, | |||||
nonceStr: paymentArgs.nonceStr, | |||||
package: paymentArgs.package, | |||||
signType: paymentArgs.signType, | |||||
paySign: paymentArgs.paySign, | |||||
} | |||||
callback(error, requestPaymentArgs) //重点:返回requestPaymentArgs | |||||
console.log(requestPaymentArgs) | |||||
} |
"requiredPrivateInfos": ["chooseLocation", "getLocation", "chooseAddress"], | "requiredPrivateInfos": ["chooseLocation", "getLocation", "chooseAddress"], | ||||
"plugins": { | "plugins": { | ||||
"issuer-plugin": { | "issuer-plugin": { | ||||
"version": "dev-86239f0e47ce1f289fa33faad042e339", | |||||
"version": "dev-442e4ff301000c311d271e67449f871a", | |||||
"provider": "wxa2d9acdd1054e69b" | "provider": "wxa2d9acdd1054e69b" | ||||
} | } | ||||
} | } |
const getObuId = () => { | const getObuId = () => { | ||||
tools.showLoadingAlert("执行指令"); | tools.showLoadingAlert("执行指令"); | ||||
if(datas.getData("deviceName").includes("K")){ | |||||
console.log("进来得") | |||||
kcApi.getDeviceInfo(function(res){ | |||||
console.log("kc====",res) | |||||
}) | |||||
} | |||||
return | |||||
// if(datas.getData("deviceName").includes("K")){ | |||||
// console.log("进来得") | |||||
// kcApi.getDeviceInfo(function(res){ | |||||
// console.log("kc====",res) | |||||
// }) | |||||
// } | |||||
// return | |||||
// if (datas.getData("deviceName").includes("JY")) { | // if (datas.getData("deviceName").includes("JY")) { | ||||
// jyApiEtc.getSystemInfo(function(res) { | // jyApiEtc.getSystemInfo(function(res) { | ||||
// console.log("获取OBU===", res) | // console.log("获取OBU===", res) |
export const loginTime = 86400; //登录有效时间(单位s) 1天 | export const loginTime = 86400; //登录有效时间(单位s) 1天 | ||||
export const wechatPayConfigId = "6a9a54bc01f6443faea7ffe132b19f8"; //支付配置编号 微信小程序支付:6a9a54bc01f6443faea7ffe132b19f6 | export const wechatPayConfigId = "6a9a54bc01f6443faea7ffe132b19f8"; //支付配置编号 微信小程序支付:6a9a54bc01f6443faea7ffe132b19f6 | ||||
export const aliPayConfigId = "6a9a54bc01f6443123452b1234"; //支付配置编号 支付宝小程序支付:6a9a54bc01f6443123452b1234 | export const aliPayConfigId = "6a9a54bc01f6443123452b1234"; //支付配置编号 支付宝小程序支付:6a9a54bc01f6443123452b1234 | ||||
export const aliPayConfigIdTwo = "6a9a54bc01f644312543761234"; | |||||
// export const aliPayConfigIdTwo = "6a9a54bc01f6443123452b1"; | |||||
// export const aliPayConfigIdTwo = "6a9a54bc01f644312543761234"; | |||||
export const aliPayConfigIdTwo = "6a9a54bc01f6443123452b1"; | |||||
//支付宝配置相关 | //支付宝配置相关 | ||||
export const aliPayConfigId1 = '202403BB9b6946b9b6704cd39f8d51138871fX92'; //qiantongka10@163.com(设备费) | export const aliPayConfigId1 = '202403BB9b6946b9b6704cd39f8d51138871fX92'; //qiantongka10@163.com(设备费) | ||||
export const aliPayConfigId2 = '202403BBa542c91b0ea94373bde1c59d10945X18'; //qiantongka13@163.com(储值卡圈存) | export const aliPayConfigId2 = '202403BBa542c91b0ea94373bde1c59d10945X18'; //qiantongka13@163.com(储值卡圈存) |