ios
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user