1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2026-02-04 07:53:11 +00:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Sunwuyuan
d2efa19107
Update exam URL to new domainq 2025-12-08 17:55:05 +08:00
Sunwuyuan
8151de7cde
Merge pull request #24 from tempChanghong/main
fix: 调整一言默认数据源为诏预 (Zhaoyu) 并增加内容安全提示
2025-12-08 17:49:33 +08:00
tempChanghong
f71ccfc30e [修复] 调整一言默认数据源为诏预 (Zhaoyu) 并增加内容安全提示 2025-12-07 22:52:37 +08:00
3 changed files with 9 additions and 5 deletions

View File

@ -1060,7 +1060,7 @@ export default {
if (result.success && result.url) {
// URL
const examUrl = `https://es.zerocat.dev/exam/?configUrl=${encodeURIComponent(result.url)}`;
const examUrl = `https://es.examaware.tech/exam/?configUrl=${encodeURIComponent(result.url)}`;
//
window.open(examUrl, '_blank');

View File

@ -32,7 +32,7 @@ export default {
enabled: false,
refreshInterval: 60,
kvConfig: {
sources: ['hitokoto'],
sources: ['zhaoyu'],
sensitiveWords: []
},
sentence: '',
@ -76,7 +76,7 @@ export default {
if (data) {
this.kvConfig = {
sources: Array.isArray(data.sources) && data.sources.length > 0 ? data.sources : ['hitokoto'],
sources: Array.isArray(data.sources) && data.sources.length > 0 ? data.sources : ['zhaoyu'],
sensitiveWords: data.sensitiveWords ? data.sensitiveWords.split(/[,]/).map(w => w.trim()).filter(w => w) : [],
jinrishiciToken: data.jinrishiciToken
}

View File

@ -41,6 +41,10 @@
@update:model-value="saveKvSettings"
/>
</div>
<div class="text-caption text-orange mt-2">
<v-icon size="x-small" color="orange" class="mr-1">mdi-alert</v-icon>
一言Hitokoto数据源已收到关于存在负面内容的大量反馈请用户谨慎启用
</div>
</v-list-item>
<v-list-item v-if="kvConfig.sources.includes('jinrishici')">
@ -94,7 +98,7 @@ export default {
data() {
return {
kvConfig: {
sources: ['hitokoto'],
sources: ['zhaoyu'],
sensitiveWords: '',
jinrishiciToken: null
},
@ -116,7 +120,7 @@ export default {
if (data) {
this.kvConfig = {
sources: Array.isArray(data.sources) ? data.sources : ['hitokoto'],
sources: Array.isArray(data.sources) ? data.sources : ['zhaoyu'],
sensitiveWords: data.sensitiveWords || '',
jinrishiciToken: data.jinrishiciToken
}