This commit is contained in:
Putoo
2026-07-11 18:52:38 +08:00
parent dec8c2e076
commit c40f3711bc
27 changed files with 577 additions and 18 deletions

View File

@@ -69,6 +69,11 @@ public static class GameBus
var mapService = App.GetService<IGameMapService>();
isok = await mapService.AddUserCityMap(userId, Convert.ToInt32(parameter));
}
else if (goodsType.Equals(nameof(GameEnum.PropCode.skill)))
{
var skillService = App.GetService<IGameSkillService>();
isok = await skillService.UpdateUserSkill(userId, Convert.ToInt32(parameter));
}
return isok;
}

View File

@@ -6,4 +6,22 @@ public class UbbTool
{
return $"<a data-type='go' data-parms='/user/user?no={no}' href='javascript:void'>{name}</a>";
}
private static string _GiftUbb = "<img src='{0}' alt='{1}' />";
public static string GiftUbb(string id, string name)
{
return string.Format(_GiftUbb, id, name);
}
public static string GiveGiftStr(int count)
{
string result = string.Empty;
result += GiftUbb("images/gift/x.png", "×");
char[] num = count.ToString().ToCharArray();
foreach (char s in num)
{
result += GiftUbb(string.Format("images/gift/num_{0}.png", s.ToString()), s.ToString());
}
return result;
}
}