Skip to content

Commit

Permalink
fix(core): 修改cdn地址
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Jun 2, 2022
1 parent 537eca7 commit 013e3ba
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/common/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class OCSApi {
url: string
}[]
}> {
const { data } = await axios.get('https://cdn.ocs.enncy.cn/infos.json?t=' + Date.now());
const { data } = await axios.get('https://cdn.ocsjs.com/infos.json?t=' + Date.now());
return data;
}
}
2 changes: 1 addition & 1 deletion packages/core/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<img
ref="logo"
class="ocs-icon"
src="https://cdn.ocs.enncy.cn/logo.png"
src="https://cdn.ocsjs.com/logo.png"
@dblclick="hide = false"
@click="(e) => e.stopPropagation()"
>
Expand Down
8 changes: 4 additions & 4 deletions packages/core/src/script/cx/recognize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function mapRecognize() {
cx.isRecognizing = false;
logger('debug', '正在加载字典库...');
// 预加载字体库
const res = await request('https://cdn.ocs.enncy.cn/resources/font/table.json', {
const res = await request('https://cdn.ocsjs.com/resources/font/table.json', {
type: 'fetch',
method: 'get',
contentType: 'json'
Expand Down Expand Up @@ -67,9 +67,9 @@ export async function mapRecognize() {
/** 繁体字识别-OCR文字识别 */
export async function ocrRecognize() {
const ocr = new OCR({
langPath: 'https://cdn.ocs.enncy.cn/resources/tessdata',
corePath: 'https://cdn.ocs.enncy.cn/resources/tesseract/tesseract-core.wasm.js',
workerPath: 'https://cdn.ocs.enncy.cn/resources/tesseract/worker.min.js'
langPath: 'https://cdn.ocsjs.com/resources/tessdata',
corePath: 'https://cdn.ocsjs.com/resources/tesseract/tesseract-core.wasm.js',
workerPath: 'https://cdn.ocsjs.com/resources/tesseract/worker.min.js'
});

const { cx } = useContext();
Expand Down
4 changes: 2 additions & 2 deletions userjs.template
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// ==UserScript==
// @name OCS 网课助手
// @version {{version}}
// @description ocs 网课助手,支持各平台网课学习,支持超星学习通,知道智慧树,等网课的学习,作业,考试功能。
// @description OCS 网课助手,支持各平台网课学习,支持超星学习通,知道智慧树,智慧职教(职教云),等网课的学习,作业,考试功能。
// @author enncy
// @license MIT
// @namespace https://enncy.cn
// @homepage https://enncy.github.io/online-course-script/
// @source https://github.com/enncy/online-course-script/
// @icon https://cdn.ocs.enncy.cn/logo.ico
// @icon https://cdn.ocsjs.com/logo.ico
// @connect enncy.cn
// @connect icodef.com
// @match *://*.chaoxing.com/*
Expand Down

0 comments on commit 013e3ba

Please sign in to comment.