Skip to content

Commit e14a83c

Browse files
committed
refactor: update hostname
1 parent f2dc187 commit e14a83c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

rs/src/cnb/api_base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pub const BLOG_BACKEND: &str = "https://i.cnblogs.com/api";
1+
pub const BLOG_BACKEND: &str = "https://write.cnblogs.com/api";
22

33
#[macro_export]
44
macro_rules! blog_backend {

src/cmd/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export namespace Browser.Open.User {
2828
void open(`https://www.cnblogs.com/${blogApp}`)
2929
}
3030

31-
export const blogConsole = () => open('https://i.cnblogs.com')
31+
export const blogConsole = () => open('https://write.cnblogs.com')
3232

3333
export async function home() {
3434
const accountId = (await UserService.getUserInfo())?.accountId

src/cmd/open/open-post-in-blog-admin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import { Browser } from '@/cmd/browser'
77
export const openPostInBlogAdmin = (arg?: PostTreeItem | Post | Uri) => {
88
if (arg instanceof Post) {
99
const postId = arg.id
10-
return Browser.Open.open(`https://i.cnblogs.com/posts/edit;postId=${postId}`)
10+
return Browser.Open.open(`https://write.cnblogs.com/posts/edit;postId=${postId}`)
1111
}
1212
if (arg instanceof PostTreeItem) {
1313
const postId = arg.post.id
14-
return Browser.Open.open(`https://i.cnblogs.com/posts/edit;postId=${postId}`)
14+
return Browser.Open.open(`https://write.cnblogs.com/posts/edit;postId=${postId}`)
1515
}
1616
if (arg instanceof Uri) {
1717
const postId = PostFileMapManager.getPostId(arg.path)
1818
if (postId === undefined) return
19-
return Browser.Open.open(`https://i.cnblogs.com/posts/edit;postId=${postId}`)
19+
return Browser.Open.open(`https://write.cnblogs.com/posts/edit;postId=${postId}`)
2020
}
2121
}

src/ctx/ext-const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export namespace ExtConst {
1313
export const CLIENT_SEC = CNBLOGS_CLIENTSECRET
1414

1515
export namespace ApiBase {
16-
export const BLOG_BACKEND = 'https://i.cnblogs.com/api'
16+
export const BLOG_BACKEND = 'https://write.cnblogs.com/api'
1717
export const OPENAPI = 'https://api.cnblogs.com/api'
1818
export const OAUTH = 'https://oauth.cnblogs.com'
1919
}

0 commit comments

Comments
 (0)