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 }