temp
This commit is contained in:
@@ -167,7 +167,7 @@ namespace TechHelper.Client.Services
|
||||
// 直接使用注入的 _client 实例
|
||||
var response = await _client.PostAsJsonAsync("exam/add", assiDto);
|
||||
|
||||
if (response.IsSuccessStatusCode) // 检查是否是成功的状态码,例如 200 OK, 201 Created 等
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
return ApiResponse.Success(message: "试题保存成功。");
|
||||
}
|
||||
|
Reference in New Issue
Block a user