This commit is contained in:
2021-03-31 22:22:59 +08:00
parent e913caa8f8
commit bf55cc7e54
41 changed files with 2182 additions and 1013 deletions

View File

@@ -20,7 +20,7 @@ NetProto.setSever = function(_host, _port)
socketUrl = joinStr("ws://", host, ":", port, "/tr_socket/websocket/")
end
NetProto.isDebug = false
NetProto.isDebug = true
---@type Dist.SpringWebsocket.Client
local socket = Client4Stomp.self
@@ -276,6 +276,7 @@ NetProto.cmds = {
announcement_query = "announcement_query", -- 系统公告
booking_query = "booking_query", -- 待跟进客户
replenish_query = "replenish_query", -- 待补货
wforder_expiry_reminder = "wforder_expiry_reminder", -- 到期提醒
filter_customers = "filter_customers", -- 过滤条件
list_customers = "list_customers", -- 客户列表
person_view_query = "person_view_query", -- 头像
@@ -489,6 +490,14 @@ NetProto.send.booking_query = function(callback, timeOutSec)
NetProto.sendSocket(content, callback, timeOutSec)
end
---public 到期提醒
NetProto.send.wforder_expiry_reminder = function(callback, timeOutSec)
local content = {}
content.action = NetProto.cmds.wforder_expiry_reminder
content.groupId = NetProto.groupId
NetProto.sendSocket(content, callback, timeOutSec)
end
---public 待补货
NetProto.send.replenish_query = function(callback, timeOutSec)
local content = {}