mm
This commit is contained in:
@@ -6,8 +6,11 @@ local timeOut = 60 * 1000
|
||||
DBStatistics.clean = function()
|
||||
end
|
||||
|
||||
DBStatistics.custtype_report = function(callback)
|
||||
if db.custtype_report == nil or lastGetTime.custtype_report == nil or DateEx.nowMS - lastGetTime.custtype_report > 0 then
|
||||
DBStatistics.custtype_report = function(callback, force)
|
||||
if
|
||||
force or db.custtype_report == nil or lastGetTime.custtype_report == nil or
|
||||
DateEx.nowMS - lastGetTime.custtype_report > 0
|
||||
then
|
||||
lastGetTime.custtype_report = DateEx.nowMS + timeOut
|
||||
NetProto.send.custtype_report(
|
||||
nil,
|
||||
@@ -23,8 +26,8 @@ DBStatistics.custtype_report = function(callback)
|
||||
end
|
||||
end
|
||||
|
||||
DBStatistics.order_report = function(callback)
|
||||
if db.order_report == nil or lastGetTime.order_report == nil or DateEx.nowMS - lastGetTime.order_report > 0 then
|
||||
DBStatistics.order_report = function(callback, force)
|
||||
if force or db.order_report == nil or lastGetTime.order_report == nil or DateEx.nowMS - lastGetTime.order_report > 0 then
|
||||
lastGetTime.order_report = DateEx.nowMS + timeOut
|
||||
NetProto.send.order_report(
|
||||
nil,
|
||||
@@ -40,8 +43,11 @@ DBStatistics.order_report = function(callback)
|
||||
end
|
||||
end
|
||||
|
||||
DBStatistics.target_report = function(callback)
|
||||
if db.target_report == nil or lastGetTime.target_report == nil or DateEx.nowMS - lastGetTime.target_report > 0 then
|
||||
DBStatistics.target_report = function(callback, force)
|
||||
if
|
||||
force or db.target_report == nil or lastGetTime.target_report == nil or
|
||||
DateEx.nowMS - lastGetTime.target_report > 0
|
||||
then
|
||||
lastGetTime.target_report = DateEx.nowMS + timeOut
|
||||
NetProto.send.target_report(
|
||||
nil,
|
||||
|
||||
Reference in New Issue
Block a user