Skip to content

Commit

Permalink
fix: 调整每日一言接口地址
Browse files Browse the repository at this point in the history
  • Loading branch information
hacxy committed Apr 10, 2024
1 parent b68b7c7 commit 4a9812f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/oh-my-live2d/src/utils/index.ts
Expand Up @@ -105,7 +105,7 @@ export const checkVersion = async (): Promise<void> => {

// 获取每日一言
export const getWordTheDay = async (format?: (wordTheDayData: WordTheDayData) => string): Promise<string> => {
const fetchResult = await fetch('https://hitokoto.oml2d.com/');
const fetchResult = await fetch('https://v1.hitokoto.cn');
const data = <WordTheDayData>await fetchResult.json();

if (format) {
Expand Down
2 changes: 1 addition & 1 deletion tests/vite-app/src/main.ts
Expand Up @@ -144,7 +144,7 @@ const foo = async () => {
});

oml2d.onStageSlideIn(() => {
oml2d.setStageSize({ width: 600, height: 600 });
// oml2d.setStageSize({ width: 600, height: 600 });
console.log(oml2d.model);
});
// oml2d.onStageSlideIn(() => {
Expand Down

0 comments on commit 4a9812f

Please sign in to comment.