mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-17 07:14:35 +01:00
Init enter game
This commit is contained in:
57
SdkServer/Handlers/Sdk/DeviceFingerprintController.cs
Normal file
57
SdkServer/Handlers/Sdk/DeviceFingerprintController.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using KianaBH.Data.Models.Sdk;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace KianaBH.SdkServer.Handlers.Sdk;
|
||||
|
||||
[ApiController]
|
||||
public class DeviceFingerprintController : ControllerBase
|
||||
{
|
||||
[HttpPost("/device-fp/api/getFp")]
|
||||
public IActionResult GetDeviceFingerprint([FromBody] GetDeviceFingerprintRequest request)
|
||||
{
|
||||
return Ok(new ResponseBase
|
||||
{
|
||||
Data = new { request.DeviceFp, Code = 0, Msg = "ok" }
|
||||
});
|
||||
}
|
||||
|
||||
[HttpGet("/device-fp/api/getExtList")]
|
||||
public IActionResult GetExtList()
|
||||
{
|
||||
var extList = new[]
|
||||
{
|
||||
"cpuName",
|
||||
"deviceModel",
|
||||
"deviceName",
|
||||
"deviceType",
|
||||
"deviceUID",
|
||||
"gpuID",
|
||||
"gpuName",
|
||||
"gpuAPI",
|
||||
"gpuVendor",
|
||||
"gpuVersion",
|
||||
"gpuMemory",
|
||||
"osVersion",
|
||||
"cpuCores",
|
||||
"cpuFrequency",
|
||||
"gpuVendorID",
|
||||
"isGpuMultiTread",
|
||||
"memorySize",
|
||||
"screenSize",
|
||||
"engineName",
|
||||
"addressMAC",
|
||||
"packageVersion"
|
||||
};
|
||||
|
||||
return Ok(new ResponseBase
|
||||
{
|
||||
Data = new
|
||||
{
|
||||
code = 200,
|
||||
msg = "ok",
|
||||
ext_list = extList,
|
||||
pkg_list = Array.Empty<object>()
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user