接口修改
This commit is contained in:
1 parent
2c7774fe2b
commit
5846078290
2 files changed
+10
-8
No files matched your search
@@ -21,15 +21,15 @@ VITE_OAUTH2_APP_CLIENT='mini:mini'
|
||||
# VITE_IMAGE_BASE_PATH = http://192.168.101.29:9999 # 邓-本地
|
||||
# VITE_IMAGE_BASE_PATH = http://192.168.101.37:9999 # 邓-本地
|
||||
# VITE_IMAGE_BASE_PATH = https://123.156.230.15:8089/api # 线上
|
||||
VITE_IMAGE_BASE_PATH = http://220.191.229.171:8090/api # 线上
|
||||
# VITE_IMAGE_BASE_PATH = http://220.191.229.171:8090/api # 线上
|
||||
# VITE_IMAGE_BASE_PATH = https://stgl.pj.gov.cn/api # 线上
|
||||
# VITE_IMAGE_BASE_PATH = http://pjcloud.center.takin.cc # 张
|
||||
# VITE_IMAGE_BASE_PATH = http://59.202.170.152:81/api # 信创线上
|
||||
VITE_IMAGE_BASE_PATH = http://59.202.170.152:81/api # 信创线上
|
||||
|
||||
# ******************** start 开发环境 start ********************
|
||||
# VITE_APP_DEV_SERVICE = http://59.202.170.152:81/api # 信创线上
|
||||
VITE_APP_DEV_SERVICE = http://59.202.170.152:81/api # 信创线上
|
||||
# VITE_APP_DEV_SERVICE = https://stgl.pj.gov.cn/app-api
|
||||
VITE_APP_DEV_SERVICE = http://192.168.101.50:9999 # 邓-本地
|
||||
# VITE_APP_DEV_SERVICE = http://192.168.101.50:9999 # 邓-本地
|
||||
# VITE_APP_DEV_SERVICE = http://127.0.0.1:9999
|
||||
# VITE_APP_DEV_SERVICE = http://123.156.230.15:8089/api/ # 线上
|
||||
# VITE_APP_DEV_SERVICE = http://220.191.229.171:8090/api # 线上
|
||||
@@ -40,7 +40,9 @@ VITE_APP_DEV_SERVICE = http://192.168.101.50:9999 # 邓-本地
|
||||
#VITE_APP_PROD_SERVICE = http://123.156.228.134:48080/app-api
|
||||
#VITE_APP_PROD_SERVICE = http://59.202.170.152:81/api
|
||||
# VITE_APP_PROD_SERVICE = https://stgl.pj.gov.cn/api
|
||||
VITE_APP_PROD_SERVICE = http://220.191.229.171:8090/api
|
||||
# VITE_APP_PROD_SERVICE = http://220.191.229.171:8090/api
|
||||
VITE_APP_PROD_SERVICE = http://59.202.170.152:81/api # 信创线上
|
||||
# ******************** end 生产环境 end ********************
|
||||
VITE_DEV_ENV = dev
|
||||
# VITE_DEV_ENV = prod
|
||||
|
||||
# VITE_DEV_ENV = dev
|
||||
VITE_DEV_ENV = prod
|
||||
@@ -144,7 +144,7 @@ const responseHelpers = {
|
||||
const issuedDate = new Date(accessToken.issuedAt).getTime()
|
||||
console.log(new Date().getTime() - issuedDate)
|
||||
|
||||
if (new Date().getTime() - issuedDate >= 1000 * 1) {
|
||||
if (new Date().getTime() - issuedDate >= 1000 * 60 * 20) {
|
||||
// try {
|
||||
// const refreshData: any = await request({
|
||||
// url: "/auth/oauth2/token",
|
||||
|
||||
Reference in new issue
Block a user