石广澎
2024-06-04 14a52315c4bdcd7d04208f41696ffd3771dd8183
common/api/index.js
@@ -33,7 +33,14 @@
/* 支付宝普通授权登录 */
export const getUserId = (params, config = {}) => http.get(URL + '/service-merchant/v1/web/h5PayAli/getUserIdByCode',
   params, config = {});
export const userLogin = (params, config = {}) => {
   let path = '/service-merchant/v1/web/aggregatePayAllin/getOpenId'
   if(params.platform==5){
      path = '/service-merchant/v1/web/h5PayAli/getUserIdByCode'
   }
   return http.get(URL + path,
      params, config = {})
};
/* 获取用户积分 */
export const queryScore = (params, config = {}) => http.get(URL +
   '/service-merchant/v1/web/aggregatePayAllin/queryScore', params, config = {});
@@ -51,6 +58,8 @@
/* 微信支付 */
export const saveWxOrder = (params, config = {}) => http.post(URL +
   '/service-merchant/v1/web/aggregatePayAllin/saveWxOrder', params, config = {});
export const saveWxOrder1 = (params, config = {}) => http.post(URL +
   '/service-merchant/v1/web/aggregatePayAllin/saveOrder', params, config = {});
/* 图形验证吗 */
export const getVerify = (params, config = {}) => http.get(URL +
@@ -109,4 +118,4 @@
/* 获取首绑有礼 */
export const headBand = (params, config = {}) => http.get(URL +
   '/service-shop/v1/shop/wechat/activity/headBand/detail',
   params, config = {});
   params, config = {});