pan-mini/unpackage/dist/dev/mp-weixin/utils/config.js

17 lines
542 B
JavaScript

"use strict";
const common_vendor = require("../common/vendor.js");
const PLATFORM = "mp-weixin";
const BASE_URL = (() => {
{
const accountInfo = common_vendor.index.getAccountInfoSync();
const env = accountInfo.miniProgram.envVersion || "release";
if (env === "develop")
return "http://127.0.0.1:7777/a-pan/forestage";
if (env === "trial")
return "http://127.0.0.1:7777/a-pan/forestage";
return "https://api.hellobin.top/a-pan/forestage";
}
})();
exports.BASE_URL = BASE_URL;
exports.PLATFORM = PLATFORM;