Commit 4c4367aa7591ad33b508363e7a8f177f0eb59eed
Merge branch 'cn/develop' into cn/publish/preview
Showing
3 changed files
with
5 additions
and
4 deletions
Show diff stats
src/actions/StoreAction.lua
@@ -24,7 +24,7 @@ function _M.rechargeRpc(agent , data) | @@ -24,7 +24,7 @@ function _M.rechargeRpc(agent , data) | ||
24 | skynet.timeout(10, function () | 24 | skynet.timeout(10, function () |
25 | role:handlePurchase({ | 25 | role:handlePurchase({ |
26 | order = partnerOrderId, | 26 | order = partnerOrderId, |
27 | - amount = dataSet.rmb, | 27 | + amount = dataSet.rmb * 100, |
28 | game_money = dataSet.diamond, | 28 | game_money = dataSet.diamond, |
29 | product_id = dataSet.productId, | 29 | product_id = dataSet.productId, |
30 | pay_time = skynet.timex(), | 30 | pay_time = skynet.timex(), |
src/models/Activity.lua
@@ -1000,9 +1000,10 @@ activityFunc[Activity.ActivityType.CommonSignIn] = { | @@ -1000,9 +1000,10 @@ activityFunc[Activity.ActivityType.CommonSignIn] = { | ||
1000 | ["init"] = function(self, actType, isCrossDay, notify, actId) | 1000 | ["init"] = function(self, actType, isCrossDay, notify, actId) |
1001 | if not isCrossDay then | 1001 | if not isCrossDay then |
1002 | activityFunc[Activity.ActivityType.CommonSignIn]["crossDay"](self, actType, notify, actId) | 1002 | activityFunc[Activity.ActivityType.CommonSignIn]["crossDay"](self, actType, notify, actId) |
1003 | + | ||
1004 | + local taskStatus = self.owner:getProperty("dTask") | ||
1005 | + activityFunc[Activity.ActivityType.CommonSignIn]["check"](self, actType, notify, 0, (taskStatus["a"] or 0)) | ||
1003 | end | 1006 | end |
1004 | - local taskStatus = self.owner:getProperty("dTask") | ||
1005 | - activityFunc[Activity.ActivityType.CommonSignIn]["check"](self, actType, notify, 0, (taskStatus["a"] or 0)) | ||
1006 | end, | 1007 | end, |
1007 | ["crossDay"] = function(self, actType, notify, actId) | 1008 | ["crossDay"] = function(self, actType, notify, actId) |
1008 | local actCfg = csvdb["activity_ctrlCsv"][actId] | 1009 | local actCfg = csvdb["activity_ctrlCsv"][actId] |
src/models/RoleTimeReset.lua
@@ -5,6 +5,7 @@ RoleTimeReset.bind = function (Role) | @@ -5,6 +5,7 @@ RoleTimeReset.bind = function (Role) | ||
5 | -- 重置内容 对应 GlobalVar TimeReset | 5 | -- 重置内容 对应 GlobalVar TimeReset |
6 | local ResetFunc = {} | 6 | local ResetFunc = {} |
7 | ResetFunc["CrossDay"] = function(self, notify, response, now) | 7 | ResetFunc["CrossDay"] = function(self, notify, response, now) |
8 | + self:setProperty("dTask", {}) | ||
8 | self.activity:checkActivityStatus(now, true, notify) | 9 | self.activity:checkActivityStatus(now, true, notify) |
9 | 10 | ||
10 | self.dailyData:refreshDailyData(notify) | 11 | self.dailyData:refreshDailyData(notify) |
@@ -12,7 +13,6 @@ ResetFunc["CrossDay"] = function(self, notify, response, now) | @@ -12,7 +13,6 @@ ResetFunc["CrossDay"] = function(self, notify, response, now) | ||
12 | self.activity:refreshDailyData(notify) | 13 | self.activity:refreshDailyData(notify) |
13 | self.storeData:onCrossDay() | 14 | self.storeData:onCrossDay() |
14 | 15 | ||
15 | - self:setProperty("dTask", {}) | ||
16 | self:incrProperty("lday", 1) | 16 | self:incrProperty("lday", 1) |
17 | self:advRandomSupportEffect(not notify) | 17 | self:advRandomSupportEffect(not notify) |
18 | 18 |