| | |
| | | /* 支付宝普通授权登录 */ |
| | | 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){ |
| | | if (params.platform == 5) { |
| | | path = '/service-merchant/v1/web/h5PayAli/getUserIdByCode' |
| | | } |
| | | if (params.platform == 15) { |
| | | path = '/service-merchant/v1/web/h5PayUnionPay/getUserIdByCode' |
| | | } |
| | | return http.get(URL + path, |
| | | params, config = {}) |
| | |
| | | /* 微信支付 */ |
| | | 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 + |
| | |
| | | /* 获取首绑有礼 */ |
| | | export const headBand = (params, config = {}) => http.get(URL + |
| | | '/service-shop/v1/shop/wechat/activity/headBand/detail', |
| | | params, config = {}); |
| | | params, config = {}); |