forked from Gitlink/forgeplus
Compare commits
2 Commits
0e36731cf0
...
d44ab6c012
Author | SHA1 | Date |
---|---|---|
|
d44ab6c012 | |
|
9c1540da19 |
|
@ -6,10 +6,10 @@ class CompetitionUserScore < ApplicationRecord
|
|||
|
||||
def api_result_text
|
||||
"" if self.api_status != 3 || self.api_result.blank?
|
||||
data = api_result["data"]
|
||||
data = api_result
|
||||
data["msg"].present? ? data["msg"] : data["errorOutput"].present? ? data["errorOutput"] : "系统打分错误,信息不详"
|
||||
rescue =>err
|
||||
return nil
|
||||
return "错误信息不详"
|
||||
end
|
||||
|
||||
def api_result_data
|
||||
|
|
Loading…
Reference in New Issue