纸通宝商家版本的小程序,原生微信开发。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

18 lines
918 B

import { mGet, mPost } from "./request"
const app = getApp()
const urls = ['https://api-client-ztb-dev.qniao.cn', 'https://api-client-ztb-test.qniao.cn', 'https://api-client-ztb.qniao.cn']
const hconfig = { baseUrl: urls[app.evn] }
// *********************************************************账户业务***********************************************************
const getUserInfo = (params) => mGet(`/ztb-supply-chain-service/get/user/base-info`, params, hconfig)
const getStoreInfo = (params) => mGet(`/ztb-supply-chain-service/scrap-paper/store/get/by/current-user`, params, hconfig)
const getChainList = (params) => mGet(`/ztb-supply-chain-service/list/scrap-paper/supply-chain/by/store-id`, params, hconfig)
const getIntentById = (shareEventId) => mGet(`/ztb-supply-chain-service/verify/share-event`, {shareEventId}, hconfig)
export {
hconfig,
getUserInfo,
getStoreInfo,
getChainList,
getIntentById
}