石广澎
2024-08-08 7e081cadeda2d7b5d3cc3f6055b4ee2799d19c00
common/api/index.js
@@ -11,19 +11,23 @@
/* 根据shopId获取商铺信息 */
export const queryShopByShopId = (params, config = {}) => http.get(URL +
   '/payfour-merchant/v1/web/aggregatePayAllin/queryShopByShopId', params, config)
/* 获取积分价值 */
export const getScoreWorth = (params, config = {}) => http.get(URL +
   '/payfour-merchant/v1/web/aggregatePayAllin/getScoreWorth', params, config)
/* 静默授权登录 */
export const getOpenIdBase = (params, config = {}) => http.get(URL +
   '/payfour-merchant/v1/web/aggregatePayAllin/getOpenIdBase', params, config = {});
/*统一授权*/
export const userLogin = (params, config = {}) => {
   let path = '/payfour-merchant/v1/web/aggregatePayAllin/getOpenId'
   if(params.platform==5){
   let path = '/payfour-merchant/v1/web/aggregatePayAllin/getOpenId' //微信授权
   if(params.platform==5){ //支付宝授权
      path = '/payfour-merchant/v1/web/h5PayAli/getUserIdByCode'
   }
   if (params.platform == 15) { //云闪付授权
      path = '/payfour-merchant/v1/web/h5PayUnionPay/getUserIdByCode'
   }
   return http.get(URL + path,
      params, config = {})
@@ -53,5 +57,3 @@
export const getWxOrderInfo = (params, config = {}) => http.post(URL +
   '/payfour-merchant/v1/web/aggregatePayAllin/getWxOrderInfo',
   params, config = {});