PC-202302260912\Administrator 2024-11-22 18:10:48 +08:00
parent 4c12388265
commit 01df9f1fe7
1 changed files with 6 additions and 6 deletions

View File

@ -31,7 +31,7 @@ function this.UpdateMialData(_mial,isAdd)
local title = string.split(_mial.head,"|")
singleMail.head = title[GetCurLanguage()+1] or title[1]
singleMail.head = this.GetStringByStringformat(singleMail.head)
local content = string.split(_mial.content,"|")
local content = string.split(_mial.content,"|")
singleMail.content = content[GetCurLanguage()+1] or content[1]--详情
singleMail.content = this.GetStringByStringformat(singleMail.content)
-- --LogGreen("singleMail.content:"..singleMail.content)
@ -81,11 +81,11 @@ function this.GetStringByStringformat(inputStr)
end
local returnStr = string.format(
GetLanguageStrById(msgStr[1]),
tostring(msgStr[2]),
tostring(msgStr[3]),
tostring(msgStr[4]),
tostring(msgStr[5]),
tostring(msgStr[6])
GetLanguageStrById(tostring(msgStr[2])),
GetLanguageStrById(tostring(msgStr[3])),
GetLanguageStrById(tostring(msgStr[4])),
GetLanguageStrById(tostring(msgStr[5])),
GetLanguageStrById(tostring(msgStr[6]))
)
-- LogPink("returnStr:"..returnStr)
return returnStr