Merge branch 'feat/back-to-front' into feat/front-end
This commit is contained in:
@ -94,7 +94,7 @@ export async function fetchBalance(): Promise<number | null> {
|
|||||||
* 调用 StrangeLoop 余额接口
|
* 调用 StrangeLoop 余额接口
|
||||||
*/
|
*/
|
||||||
async function callStrangeLoopBalance(token: string): Promise<StrangeLoopBalanceResponse> {
|
async function callStrangeLoopBalance(token: string): Promise<StrangeLoopBalanceResponse> {
|
||||||
const urlStr = getStrangeLoopApiUrl('/api/credit/balance');
|
const urlStr = getStrangeLoopApiUrl('/strangeloop/api/credit/balance');
|
||||||
const url = new URL(urlStr);
|
const url = new URL(urlStr);
|
||||||
|
|
||||||
const isHttps = url.protocol === 'https:';
|
const isHttps = url.protocol === 'https:';
|
||||||
|
|||||||
Reference in New Issue
Block a user