27 lines
800 B
C#
27 lines
800 B
C#
namespace Application.Domain;
|
||
|
||
public class UbbTool
|
||
{
|
||
public static string HomeUbb(string no, string name)
|
||
{
|
||
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;
|
||
}
|
||
} |