From feefa6f02669e4dcef16b4da6f2acda081157132 Mon Sep 17 00:00:00 2001 From: chenyueqi <1056825054@qq.com> Date: Thu, 11 Jun 2020 11:19:18 +0800 Subject: [PATCH] 餐厅引导设置客人id --- src/models/Diner.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+), 0 deletions(-) diff --git a/src/models/Diner.lua b/src/models/Diner.lua index 0180aa0..3b0323f 100644 --- a/src/models/Diner.lua +++ b/src/models/Diner.lua @@ -69,6 +69,18 @@ function Diner:refreshDailyData(notify) had[entrust[i]] = 1 end end + + local guide = self.owner:getProperty("newerGuide") + local master, slave = string.match(guide,"(%d+)=(%d+)") + if tonumber(master) <= 26 then + entrust[1] = 1031 + entrust[2] = 3 + elseif tonumber(master) <= 29 then + local temp = entrust[1] + entrust[1] = 3 + entrust[2] = temp + end + self:updateProperty({field = "entrust", value = entrust, notNotify = not notify}) -- 每日加速次数 -- libgit2 0.21.2