合并后台端
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { AkReqUploadOptions, AkReqOptions, AkReqResponse, AkReqError } from './interface.uts';
|
||||
import { SUPA_URL } from '@/ak/config.uts';
|
||||
|
||||
// token 持久化 key
|
||||
const ACCESS_TOKEN_KEY = 'akreq_access_token';
|
||||
@@ -75,7 +76,7 @@ export class AkReq {
|
||||
headers = Object.assign({}, headers, { 'apikey': apikey }) as UTSJSONObject;
|
||||
} try {
|
||||
const res = await this.request({
|
||||
url: 'https://ak3.oulog.com/auth/v1/token?grant_type=refresh_token',
|
||||
url: SUPA_URL + '/auth/v1/token?grant_type=refresh_token',
|
||||
method: 'POST',
|
||||
data: ({ refresh_token: refreshToken } as UTSJSONObject),
|
||||
headers: headers,
|
||||
|
||||
Reference in New Issue
Block a user