Commit 9cf14ecd49d98ffd6b4c349cfbe253f7aa84968c
Merge branch 'tr/bugfix' into cn/develop
Showing
3 changed files
with
5 additions
and
4 deletions
Show diff stats
src/actions/StoreAction.lua
| @@ -23,7 +23,7 @@ function _M.rechargeRpc(agent , data) | @@ -23,7 +23,7 @@ function _M.rechargeRpc(agent , data) | ||
| 23 | skynet.timeout(10, function () | 23 | skynet.timeout(10, function () |
| 24 | role:handlePurchase({ | 24 | role:handlePurchase({ |
| 25 | order = partnerOrderId, | 25 | order = partnerOrderId, |
| 26 | - amount = dataSet.rmb, | 26 | + amount = dataSet.rmb * 100, |
| 27 | game_money = dataSet.diamond, | 27 | game_money = dataSet.diamond, |
| 28 | product_id = dataSet.productId, | 28 | product_id = dataSet.productId, |
| 29 | pay_time = skynet.timex(), | 29 | 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 |