mirror of
https://github.com/oshima-studios/OshimaGameModule.git
synced 2025-04-22 20:09:35 +08:00
执行代码清理
This commit is contained in:
parent
0b022fe9c1
commit
e77ac767ef
@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using Milimoe.FunGame.Core.Api.Utility;
|
||||
using Milimoe.FunGame.Core.Api.Utility;
|
||||
using Milimoe.FunGame.Core.Entity;
|
||||
using Milimoe.FunGame.Core.Library.Constant;
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
using Milimoe.FunGame.Core.Entity;
|
||||
using Milimoe.FunGame.Core.Interface.Entity;
|
||||
using Milimoe.FunGame.Core.Library.Constant;
|
||||
|
||||
namespace Oshima.FunGame.OshimaModules.Skills
|
||||
|
@ -433,7 +433,7 @@ namespace Oshima.FunGame.OshimaServers
|
||||
string remark = Convert.ToString(dr["remark"]) ?? "";
|
||||
string record = Convert.ToString(dr["record"]) ?? "";
|
||||
result += $"用户:{qq},圣人点数:{sc} 分{(remark.Trim() != "" ? $" ({remark})" : "")},排在圣人榜第 {index} / {sql.DataSet.Tables[0].Rows.Count} 名。\r\n" +
|
||||
$"{(record != "" ? "显示近期点数变动信息:\r\n" + record + "\r\n": "")}本系统仅供娱乐,不代表任何官方立场或真实情况。";
|
||||
$"{(record != "" ? "显示近期点数变动信息:\r\n" + record + "\r\n" : "")}本系统仅供娱乐,不代表任何官方立场或真实情况。";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -650,7 +650,7 @@ namespace Oshima.FunGame.OshimaServers.Service
|
||||
|
||||
public static string GetSignInResult(User user, int days)
|
||||
{
|
||||
string msg = $"签到成功,你已连续签到 {days +1} 天!\r\n本次签到获得:";
|
||||
string msg = $"签到成功,你已连续签到 {days + 1} 天!\r\n本次签到获得:";
|
||||
int currency = Random.Shared.Next(1000, 3000) + 10 * days;
|
||||
msg += $"{currency} {General.GameplayEquilibriumConstant.InGameCurrency} 和 ";
|
||||
int material = Random.Shared.Next(5, 15) + days / 7;
|
||||
|
@ -47,7 +47,8 @@ namespace Oshima.FunGame.WebAPI
|
||||
builder.Services.AddScoped<RainBOTService>();
|
||||
builder.Services.AddScoped<FunGameController>();
|
||||
builder.Services.AddScoped<QQController>();
|
||||
builder.Services.AddTransient(provider => {
|
||||
builder.Services.AddTransient(provider =>
|
||||
{
|
||||
SQLHelper? sql = Factory.OpenFactory.GetSQLHelper();
|
||||
if (sql != null) return sql;
|
||||
throw new Milimoe.FunGame.SQLServiceException();
|
||||
|
Loading…
x
Reference in New Issue
Block a user