config.js
1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
@songcxa
@2018-12-14
@移动支付配置[配置项除ip地址外勿动]
*/
window.webAppH5 = {};
/*服务器地址*/
// var webAppRoot = "http://pay.service.huangshiparking.com";
// var webAppRoot = 'http://pay.service.renniting.cn/'; //赤峰
//test 测试环境
var webAppRoot = "http://39.98.58.92:8090";
//微信支付结果回调地址
var webAppPayResult = "http://wxgzh.renniting.cn/wechatwuxi/DEV/Threewf/codepay/page/wxpayResult.html";
/*公共参数*/
webAppH5.comParams = {
app_id: 'wx945eccc8163fd75b',
salt: 2,
deviceInfo: 3,
sign_type: 'md5',
sign: 4,
token: '666'
}
//小票扫码支付参数
webAppH5.dynCode = {//卫岗固定参数
direction: 1,
codeType: 1,
channelId: "小票二维码"
}
/*出、入场接口*/
webAppH5.comServer = "/keyTopQrCodeInOutPark/noCarQRcodeInOutPark";
/*优惠券*/
webAppH5.discountServer = "/keyTopQrCodeInOutPark/useCouponQueryFee";
//缴费-微信
webAppH5.wxPayServer = "/weixinpay/publicUnifiedOrder";
//缴费-微信
webAppH5.wxGetOpenIdServer = "/weixinPublicPay/getOpenIdByCode";
//缴费-支付宝
webAppH5.aliPayServer = "/alipay/aliH5Pay";
//h5-支付兑换优惠券
webAppH5.useCouponQueryFee = "/keyTopQrCodeInOutPark/useCouponQueryFee";
/*0元支付*/
webAppH5.zeroPayServer = "/appAccountPay/zeroPay";
function IsWeixinOrAlipay(){
var clientType = clientBrowserEx();
if(clientType=='wxPay'){
return 4
}else if(clientType=='aliPay'){
return 1
}else {
return 1
}
}