mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-10 22:21:11 +08:00
恢复
This commit is contained in:
parent
b6cc2905bb
commit
7a3ec58401
@ -63,13 +63,6 @@ rule_translation_published() {
|
||||
&& echo "匹配规则:发布译文 ${PUB_A} 篇"
|
||||
}
|
||||
|
||||
# 校对已发布:只能校对一篇
|
||||
rule_published_revised() {
|
||||
[ "$PUB_M" -eq 1 ] \
|
||||
&& check_category PUB M \
|
||||
&& [ "$TOTAL" -eq 1 ] && echo "匹配规则:校对已发布"
|
||||
}
|
||||
|
||||
# 定义常见错误
|
||||
|
||||
# 未知错误
|
||||
@ -83,12 +76,6 @@ error_translation_requested_multiple() {
|
||||
&& echo "匹配错误:申领多篇,请一次仅申领一篇"
|
||||
}
|
||||
|
||||
# 提交多篇
|
||||
error_translation_completed_multiple() {
|
||||
[ "$TSL_A" -gt 1 ] \
|
||||
&& echo "匹配错误:提交多篇,请一次仅提交一篇"
|
||||
}
|
||||
|
||||
# 执行检查并输出匹配项目
|
||||
do_check() {
|
||||
rule_bypass_check \
|
||||
@ -97,10 +84,8 @@ do_check() {
|
||||
|| rule_translation_completed \
|
||||
|| rule_translation_revised \
|
||||
|| rule_translation_published \
|
||||
|| rule_published_revised \
|
||||
|| {
|
||||
error_translation_requested_multiple \
|
||||
|| error_translation_completed_multiple \
|
||||
|| error_undefined
|
||||
exit 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user