1.24 雷达图,行业排名弹窗UI完善,接口对接,公司公告,新闻动态接口对接
This commit is contained in:
6
unpackage/dist/dev/mp-weixin/request/http.js
vendored
6
unpackage/dist/dev/mp-weixin/request/http.js
vendored
@@ -4,14 +4,14 @@ let baseURL = "";
|
||||
{
|
||||
baseURL = "https://api.valuefrontier.cn:5002";
|
||||
}
|
||||
function get(url, params) {
|
||||
function get(url, params, isNotPort) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let token = common_vendor.index.getStorageSync("token");
|
||||
common_vendor.index.showLoading({
|
||||
title: "加载中"
|
||||
});
|
||||
let baseUrl = baseURL;
|
||||
if (url.indexOf("concept-api") > -1 || url.indexOf("news-api") > -1 || url.indexOf("report-api") > -1) {
|
||||
if (isNotPort) {
|
||||
baseUrl = "https://api.valuefrontier.cn";
|
||||
}
|
||||
common_vendor.index.request({
|
||||
@@ -46,7 +46,7 @@ function get(url, params) {
|
||||
});
|
||||
});
|
||||
}
|
||||
function post(url, params) {
|
||||
function post(url, params, isNotPort) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let token = common_vendor.index.getStorageSync("token");
|
||||
let isJson = 0;
|
||||
|
||||
Reference in New Issue
Block a user