This commit is contained in:
2020-07-24 22:12:55 +08:00
parent 3f114a6fca
commit 67a1f974bf
117 changed files with 14258 additions and 2325 deletions

View File

@@ -33,8 +33,8 @@ local wrapSendData = function(map)
map.sign = NetProto.sign
local dList = {}
for k, v in pairs(map) do
if (type(v) == "number" or type(v) == "string" or type(v) == "boolean") then
table.insert(dList, joinStr(k, "=", Uri.EscapeDataString(v or "")))
if v and (type(v) == "number" or type(v) == "string" or type(v) == "boolean") then
table.insert(dList, joinStr(k, "=", Uri.EscapeDataString(tostring(v))))
end
end
return table.concat(dList, "&")
@@ -242,7 +242,8 @@ NetProto.cmds = {
selectProductInfo = "selectProductInfo", -- 商品列表
createWfInfo = "createWfInfo", -- 创建订单
create_followUp_task = "create_followUp_task", -- 创建跟进预约
list_followUp_records = "list_followUp_records" -- 跟进记录
list_followUp_records = "list_followUp_records", -- 跟进记录
workFlowQuery = "workFlowQuery" -- 工单列表
}
---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------
@@ -585,5 +586,15 @@ NetProto.send.list_followUp_records = function(filters, queryKey, page, callback
content.current_page = page
NetProto.sendSocket(content, callback, timeOutSec)
end
NetProto.send.workFlowQuery = function(filters, queryKey, page, callback, timeOutSec)
local content = {}
content.action = NetProto.cmds.workFlowQuery
content.groupId = NetProto.groupId
content.filters = filters
content.keywords = queryKey
content.current_page = page
NetProto.sendSocket(content, callback, timeOutSec)
end
------------------------------------------------------
return NetProto