Commit bd9f1e33 authored by Steven杜宇's avatar Steven杜宇

// 学历

parent e5700a70
...@@ -275,11 +275,14 @@ class YHMajorInfo: SmartCodable { ...@@ -275,11 +275,14 @@ class YHMajorInfo: SmartCodable {
var en_name: String = "" var en_name: String = ""
func getMajorName() -> String { func getMajorName() -> String {
var result = ""
if !ch_name.isEmpty { if !ch_name.isEmpty {
return ch_name result += ch_name
} }
return en_name if !en_name.isEmpty {
result += en_name
}
return result
} }
required init() { required init() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment