121212
This commit is contained in:
@@ -80,6 +80,14 @@ public static class GameBus
|
||||
{
|
||||
foreach (var item in Reward)
|
||||
{
|
||||
if (operate == 0)
|
||||
{
|
||||
if (Convert.ToInt32(item.isOp) == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
long num = Convert.ToInt64(item.count) * count;
|
||||
if (num <= 0)
|
||||
{
|
||||
@@ -223,7 +231,7 @@ public static class GameBus
|
||||
else if (item.code == nameof(GameEnum.PropCode.Monster))
|
||||
{
|
||||
var monsterService = App.GetService<IGameMonsterService>();
|
||||
var onCount = await monsterService.GetUserMonsterCount(userId,item.parameter,1);
|
||||
var onCount = await monsterService.GetUserMonsterCount(userId, item.parameter, 1);
|
||||
item.count = item.count;
|
||||
item.onCount = onCount;
|
||||
if (onCount < item.count)
|
||||
|
||||
@@ -188,7 +188,7 @@ public class TaskController : ControllerBase
|
||||
int toGoods = await _goodsService.GetUserGoodsCount(userId, GameConfig.GameGetTaskGoods);
|
||||
int retGoods = await _goodsService.GetUserGoodsCount(userId, GameConfig.GameRetTaskGoods);
|
||||
return PoAction.Ok(new
|
||||
{ data = data, talkMsg, taskState, toGoods, retGoods });
|
||||
{ data = data, talkMsg, taskState, toGoods, retGoods,lev = taskInfo.lev });
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user