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