Commit ea0852938ac0a13aca529b7a2f593b1a634f7fd9
Merge branch 'cn/develop' into cn/publish/preview
Showing
2 changed files
with
8 additions
and
8 deletions
Show diff stats
src/actions/GmAction.lua
@@ -1029,9 +1029,9 @@ end | @@ -1029,9 +1029,9 @@ end | ||
1029 | 1029 | ||
1030 | table.insert(helpDes, {"清讨伐电台", "clear_radio", "id"}) | 1030 | table.insert(helpDes, {"清讨伐电台", "clear_radio", "id"}) |
1031 | function _M.clear_radio(role, pms) | 1031 | function _M.clear_radio(role, pms) |
1032 | - local id = pms.pm1 | 1032 | + local id = tonumber(pms.pm1) |
1033 | local radioTask = role:getProperty("radioTask") | 1033 | local radioTask = role:getProperty("radioTask") |
1034 | - if id == 0 then | 1034 | + if id ~= 0 then |
1035 | radioTask[id] = nil | 1035 | radioTask[id] = nil |
1036 | else | 1036 | else |
1037 | radioTask = {} | 1037 | radioTask = {} |
@@ -1044,9 +1044,9 @@ end | @@ -1044,9 +1044,9 @@ end | ||
1044 | 1044 | ||
1045 | table.insert(helpDes, {"清代理拾荒", "clear_adv_hang", "id"}) | 1045 | table.insert(helpDes, {"清代理拾荒", "clear_adv_hang", "id"}) |
1046 | function _M.clear_adv_hang(role, pms) | 1046 | function _M.clear_adv_hang(role, pms) |
1047 | - local id = pms.pm1 | 1047 | + local id = tonumber(pms.pm1) |
1048 | local task = role:getProperty("advHang") | 1048 | local task = role:getProperty("advHang") |
1049 | - if id == 0 then | 1049 | + if id ~= 0 then |
1050 | task[id] = nil | 1050 | task[id] = nil |
1051 | else | 1051 | else |
1052 | task = {} | 1052 | task = {} |
@@ -1058,10 +1058,10 @@ function _M.clear_adv_hang(role, pms) | @@ -1058,10 +1058,10 @@ function _M.clear_adv_hang(role, pms) | ||
1058 | end | 1058 | end |
1059 | 1059 | ||
1060 | table.insert(helpDes, {"清海港贸易", "clear_sea", "id"}) | 1060 | table.insert(helpDes, {"清海港贸易", "clear_sea", "id"}) |
1061 | -function _M.clear_radio(role, pms) | ||
1062 | - local id = pms.pm1 | 1061 | +function _M.clear_sea(role, pms) |
1062 | + local id = tonumber(pms.pm1) | ||
1063 | local task = role:getProperty("seaport") | 1063 | local task = role:getProperty("seaport") |
1064 | - if id == 0 then | 1064 | + if id ~= 0 then |
1065 | task.collect[id] = nil | 1065 | task.collect[id] = nil |
1066 | else | 1066 | else |
1067 | task.collect = {} | 1067 | task.collect = {} |