diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index 4f72b8e..ba69b1c 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -1431,7 +1431,7 @@ function _M.diamondConvertRpc(agent, data) role:costDiamond({count = cost, log = {desc = "convert", int1 = oper, int2 = get}}) local reward, change if oper == 1 then -- 钻石兑换成虹光玉 - reward, change = role:award({[ItemId.Jade] = get}, {log = {desc = "convert"}}) + reward, change = role:award({[ItemId.Jade] = get}, {log = {desc = "convert", short1=oper}}) elseif oper == 2 then -- 钻石兑换成虹光玉再兑换成招募券 local old = role:getItemCount(ItemId.Jade) get = old + get @@ -1444,7 +1444,7 @@ function _M.diamondConvertRpc(agent, data) allReward[ItemId.Jade] = remain - old elseif remain == old then else - role:costItems({[ItemId.Jade] = old - remain}, {log = {desc = "convert"}}) + role:costItems({[ItemId.Jade] = old - remain}, {log = {desc = "convert", short1=oper}}) end if quan > 0 then -- libgit2 0.21.2