rom依赖WebApi修正

This commit is contained in:
sin365 2025-01-24 13:23:39 +08:00
parent c48ac38f00
commit 6f841c598d
2 changed files with 4 additions and 4 deletions

View File

@ -66,7 +66,7 @@ namespace AxibugEmuOnline.Web.Controllers
MySqlConnection conn = SQLPool.DequeueSQLConn("RomList"); MySqlConnection conn = SQLPool.DequeueSQLConn("RomList");
{ {
string platformCond = ""; string platformCond = "";
if (GType > (int)RomPlatformType.Invalid && GType < (int)RomPlatformType.All) if (Ptype > (int)RomPlatformType.Invalid && Ptype < (int)RomPlatformType.All)
{ {
platformCond = $" and PlatformType = '{Ptype}' "; platformCond = $" and PlatformType = '{Ptype}' ";
} }
@ -176,7 +176,7 @@ namespace AxibugEmuOnline.Web.Controllers
MySqlConnection conn = SQLPool.DequeueSQLConn("MarkList"); MySqlConnection conn = SQLPool.DequeueSQLConn("MarkList");
{ {
string platformCond = ""; string platformCond = "";
if (GType > (int)RomPlatformType.Invalid && GType < (int)RomPlatformType.All) if (Ptype > (int)RomPlatformType.Invalid && Ptype < (int)RomPlatformType.All)
{ {
platformCond = $" and romlist.PlatformType = '{Ptype}' "; platformCond = $" and romlist.PlatformType = '{Ptype}' ";
} }
@ -288,7 +288,7 @@ LIMIT ?offset, ?pageSize;";
Resp_RomInfo resp = new Resp_RomInfo(); Resp_RomInfo resp = new Resp_RomInfo();
MySqlConnection conn = SQLPool.DequeueSQLConn("NesRomList"); MySqlConnection conn = SQLPool.DequeueSQLConn("NesRomList");
{ {
string query = $"SELECT id,`Name`,GameType,Note,RomUrl,ImgUrl,`Hash`,`playcount`,`stars`,`PlatformType`,mlist.`parentids` FROM romlist where id = ?romid;"; string query = $"SELECT id,`Name`,GameType,Note,RomUrl,ImgUrl,`Hash`,`playcount`,`stars`,`PlatformType`,`parentids` FROM romlist where id = ?romid;";
using (var command = new MySqlCommand(query, conn)) using (var command = new MySqlCommand(query, conn))
{ {
// ÉèÖòÎÊýÖµ // ÉèÖòÎÊýÖµ

View File

@ -5,7 +5,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<Project> <Project>
<PropertyGroup> <PropertyGroup>
<_PublishTargetUrl>G:\Sin365\AxibugEmuOnline\AxibugEmuOnline.Web\bin\Release\net8.0\publish\</_PublishTargetUrl> <_PublishTargetUrl>G:\Sin365\AxibugEmuOnline\AxibugEmuOnline.Web\bin\Release\net8.0\publish\</_PublishTargetUrl>
<History>True|2025-01-13T07:57:42.8554189Z||;True|2025-01-13T15:56:16.9992929+08:00||;True|2025-01-09T15:00:13.8691822+08:00||;True|2025-01-09T14:47:16.4993283+08:00||;True|2025-01-09T14:47:09.3814423+08:00||;True|2025-01-09T14:38:36.2730244+08:00||;True|2025-01-08T13:35:26.6793825+08:00||;True|2025-01-07T10:37:18.6461694+08:00||;True|2024-09-12T14:18:38.6992653+08:00||;True|2024-09-12T14:08:58.4526827+08:00||;True|2024-08-22T14:13:06.3067002+08:00||;True|2024-08-14T10:33:10.9180984+08:00||;True|2024-08-13T18:28:27.5050523+08:00||;True|2024-08-13T18:25:47.6591234+08:00||;True|2024-08-13T18:25:17.5344107+08:00||;True|2024-08-13T17:46:23.4523329+08:00||;</History> <History>True|2025-01-23T06:10:54.0851574Z||;True|2025-01-23T13:21:13.2937446+08:00||;True|2025-01-23T13:15:40.1876887+08:00||;True|2025-01-13T15:57:42.8554189+08:00||;True|2025-01-13T15:56:16.9992929+08:00||;True|2025-01-09T15:00:13.8691822+08:00||;True|2025-01-09T14:47:16.4993283+08:00||;True|2025-01-09T14:47:09.3814423+08:00||;True|2025-01-09T14:38:36.2730244+08:00||;True|2025-01-08T13:35:26.6793825+08:00||;True|2025-01-07T10:37:18.6461694+08:00||;True|2024-09-12T14:18:38.6992653+08:00||;True|2024-09-12T14:08:58.4526827+08:00||;True|2024-08-22T14:13:06.3067002+08:00||;True|2024-08-14T10:33:10.9180984+08:00||;True|2024-08-13T18:28:27.5050523+08:00||;True|2024-08-13T18:25:47.6591234+08:00||;True|2024-08-13T18:25:17.5344107+08:00||;True|2024-08-13T17:46:23.4523329+08:00||;</History>
<LastFailureDetails /> <LastFailureDetails />
</PropertyGroup> </PropertyGroup>
</Project> </Project>