This commit is contained in:
Putoo
2026-07-15 18:15:35 +08:00
parent c9c870004b
commit 4ef892e15e
3 changed files with 12 additions and 1 deletions

View File

@@ -265,7 +265,7 @@ public class GameEquService(ISqlSugarClient DbClient, IRedisCache redis) : IGame
else
{
ue.minAtk = RandomAssist.GetFormatedNumeric((int)equ.minAtk, (int)equ.maxAtk);
ue.maxAtk = RandomAssist.GetFormatedNumeric((int)equ.minAtk, (int)equ.maxAtk);
ue.maxAtk = RandomAssist.GetFormatedNumeric((int)ue.minAtk, (int)equ.maxAtk);
string[] def = equ.defense.Split('-');
ue.Defense = RandomAssist.GetFormatedNumeric(Convert.ToInt32(def[0]), Convert.ToInt32(def[1]));
string[] agi = equ.agility.Split('-');

View File

@@ -49,6 +49,16 @@ namespace Application.Web.Controllers.Login
return html;
}
[HttpGet]
public async Task<string> HandleError()
{
var attrService = App.GetService<IUnitUserAttrService>();
var model = await attrService.GetUserAttrModel("32cd4777-e523-4cf9-b8f1-de13235f6170");
return "1";
}
/// <summary>
/// 登录接口
/// </summary>