config.js 1.47 KB
/*
@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
  }
}