This commit is contained in:
2020-07-15 20:53:37 +08:00
parent f02f8e2308
commit 2092e4ef94
46 changed files with 200 additions and 154 deletions

View File

@@ -108,4 +108,21 @@ end
MyUtl.confirm = function(msg, callback, buttonName)
getPanelAsy("PanelConfirm2", onLoadedPanelTT, {msg = msg, callback = callback, buttonName = buttonName})
end
MyUtl.isHidePhone = true
function MyUtl.setIsHidePhone(val)
MyUtl.isHidePhone = (val == 1 and true or false)
end
MyUtl.hidePhone = function(phone)
if not MyUtl.isHidePhone then
return phone
end
if #phone > 8 then
return joinStr(string.sub(phone, 1, 4), "****", string.sub(phone, 9))
else
return joinStr(string.sub(phone, 1, 4), "****")
end
end
return MyUtl