/* @songcxa @2018-12-14 @移动支付配置[配置项除ip地址外勿动] */ window.webAppH5 = {}; /*服务器地址*/ var webAppRoot = "http://pay.service.renniting.cn/v1"; //test 测试环境 // var webAppRoot = "http://39.98.54.240:8090"; //微信支付结果回调地址 var webAppPayResult = "http://wxgzh.renniting.cn/xcscan/PDA-Payment/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 ua = window.navigator.userAgent; // //判断是不是微信 // if ( ua.indexOf("MicroMessenger") > 0 ) { // return 4; // } // //判断是不是支付宝 // if (ua.indexOf("Alipayclient") > 0) { // return 1; // } // //哪个都不 // return "false"; var clientType = clientBrowserEx(); if(clientType=='wxPay'){ return 4 }else if(clientType=='aliPay'){ return 1 }else { return 1 } }