1212121
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user