大写小写问题
This commit is contained in:
parent
de17ffa605
commit
935b1f9f9e
|
@ -3,12 +3,11 @@ module ExerciseHelper
|
|||
|
||||
# 单选
|
||||
def sigle_selection_standard_answer(params)
|
||||
size = params.ord - 64
|
||||
# 输入的为小写字母答案
|
||||
size = params.ord - 96
|
||||
if size > 0
|
||||
answer = params.ord - 96
|
||||
else
|
||||
answer = params.ord
|
||||
answer = params.ord - 64
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue