2020-07-08

This commit is contained in:
2020-07-08 08:01:34 +08:00
parent e344c54d82
commit 650da9efae
97 changed files with 1469 additions and 475 deletions

View File

@@ -36,17 +36,17 @@ end
---public 拨号
MyUtl.callCust = function(cust)
if type(cust.jsonstr) == "string" then
cust.jsonstr = json.decode(cust.jsonstr)
if type(cust.jsonStr) == "string" then
cust.jsonStr = json.decode(cust.jsonStr)
end
cust.jsonstr = cust.jsonstr or {}
cust.jsonStr = cust.jsonStr or {}
local phones = ArrayList()
local taskId = tostring(cust.taskId)
local fields = DBCust.getFieldsByTask(taskId)
for i, attr in ipairs(fields) do
if attr.attrType == DBCust.FieldType.phone then
local phNo = cust.jsonstr[joinStr(attr.id, "_", attr.attrName)]
local phNo = cust.jsonStr[joinStr(attr.id, "_", attr.attrName)]
if not isNilOrEmpty(phNo) then
phones:Add(joinStr(attr.attrName,": ", phNo))
end