feat: 删除无用的console输出
This commit is contained in:
+3
-3
@@ -63,7 +63,7 @@ class WxRequest {
|
||||
if ((statusCode === 401 || data.code === 401) && !options.skipToken && !options._retry) {
|
||||
const app = getApp();
|
||||
if (app && app.forceRefreshLogin) {
|
||||
console.log('401 detected, refreshing token...');
|
||||
|
||||
app.forceRefreshLogin().then(() => {
|
||||
// Retry Original Request
|
||||
this.request({ ...options, _retry: true })
|
||||
@@ -270,8 +270,8 @@ class WxRequest {
|
||||
|
||||
// Initialize with default instance
|
||||
const request = new WxRequest({
|
||||
baseUrl: 'http://192.168.0.184:8889',
|
||||
//baseUrl: 'https://go.sundynix.cn/api',
|
||||
//baseUrl: 'http://192.168.0.184:8889',
|
||||
baseUrl: 'https://go.sundynix.cn/api',
|
||||
header: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
|
||||
+2
-2
@@ -17,10 +17,10 @@ export const requestSubscription = () => {
|
||||
tmplIds: [TEMPLATE_ID],
|
||||
success(res) {
|
||||
if (res[TEMPLATE_ID] === 'accept') {
|
||||
console.log('Subscription accepted');
|
||||
|
||||
resolve({ success: true, status: 'accept' });
|
||||
} else {
|
||||
console.log('Subscription rejected or other status', res[TEMPLATE_ID]);
|
||||
|
||||
resolve({ success: false, status: res[TEMPLATE_ID] });
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user