1111
This commit is contained in:
@@ -68,5 +68,29 @@ public class GameBus
|
||||
return isok;
|
||||
}
|
||||
|
||||
public static async Task<bool> UpdateBag(string userId, int operate, dynamic Reward, string remark = "",
|
||||
long count = 1)
|
||||
{
|
||||
try
|
||||
{
|
||||
foreach (var item in Reward)
|
||||
{
|
||||
long num = Convert.ToInt64(item.count) * count;
|
||||
if (num <= 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
await UpdateBag(userId, operate, item.code, item.parameter, num, remark);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
9
Service/Application.Domain/Tool/Base/UbbTool.cs
Normal file
9
Service/Application.Domain/Tool/Base/UbbTool.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
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>";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user