Commit ea0852938ac0a13aca529b7a2f593b1a634f7fd9

Authored by 熊润斐
2 parents ca787d03 7fe1158c

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 1029  
1030 1030 table.insert(helpDes, {"清讨伐电台", "clear_radio", "id"})
1031 1031 function _M.clear_radio(role, pms)
1032   - local id = pms.pm1
  1032 + local id = tonumber(pms.pm1)
1033 1033 local radioTask = role:getProperty("radioTask")
1034   - if id == 0 then
  1034 + if id ~= 0 then
1035 1035 radioTask[id] = nil
1036 1036 else
1037 1037 radioTask = {}
... ... @@ -1044,9 +1044,9 @@ end
1044 1044  
1045 1045 table.insert(helpDes, {"清代理拾荒", "clear_adv_hang", "id"})
1046 1046 function _M.clear_adv_hang(role, pms)
1047   - local id = pms.pm1
  1047 + local id = tonumber(pms.pm1)
1048 1048 local task = role:getProperty("advHang")
1049   - if id == 0 then
  1049 + if id ~= 0 then
1050 1050 task[id] = nil
1051 1051 else
1052 1052 task = {}
... ... @@ -1058,10 +1058,10 @@ function _M.clear_adv_hang(role, pms)
1058 1058 end
1059 1059  
1060 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 1063 local task = role:getProperty("seaport")
1064   - if id == 0 then
  1064 + if id ~= 0 then
1065 1065 task.collect[id] = nil
1066 1066 else
1067 1067 task.collect = {}
... ...
1   -Subproject commit 7e360667871839f748175e801bbb1ff39ba802ac
  1 +Subproject commit 8f6460b1bc144989ece2f2caaf5c225ae434ac38
... ...