azure推送更新
This commit is contained in:
parent
0bc2e241f0
commit
b3bc529014
@ -46,6 +46,9 @@ namespace asg_form.Controllers
|
|||||||
{
|
{
|
||||||
var game = await testDb.team_Games.FirstOrDefaultAsync(a => a.id == gameid);
|
var game = await testDb.team_Games.FirstOrDefaultAsync(a => a.id == gameid);
|
||||||
game.team1_name = req.team1_name;
|
game.team1_name = req.team1_name;
|
||||||
|
game.judge_Id = req.judge_Id;
|
||||||
|
game.referee_Id = req.referee_Id;
|
||||||
|
game.Remarks = req.Remarks;
|
||||||
game.team2_name = req.team2_name;
|
game.team2_name = req.team2_name;
|
||||||
game.opentime = req.opentime;
|
game.opentime = req.opentime;
|
||||||
game.bilibiliuri = req.bilibiliuri;
|
game.bilibiliuri = req.bilibiliuri;
|
||||||
@ -117,6 +120,9 @@ namespace asg_form.Controllers
|
|||||||
belong = req.belong,
|
belong = req.belong,
|
||||||
tag = req.tag,
|
tag = req.tag,
|
||||||
judge = req.judge,
|
judge = req.judge,
|
||||||
|
judge_Id= req.judge_Id,
|
||||||
|
referee_Id= req.referee_Id,
|
||||||
|
Remarks= req.Remarks,
|
||||||
com_limit = req.comLimit,
|
com_limit = req.comLimit,
|
||||||
person_type = req.personType,
|
person_type = req.personType,
|
||||||
};
|
};
|
||||||
@ -422,13 +428,18 @@ namespace asg_form.Controllers
|
|||||||
public int com_limit { get; set; } = 2;
|
public int com_limit { get; set; } = 2;
|
||||||
public string? person_type { get; set; }
|
public string? person_type { get; set; }
|
||||||
public string? final_score { get; set; }
|
public string? final_score { get; set; }
|
||||||
|
public string? Remarks { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public class req_team_game
|
public class req_team_game
|
||||||
{
|
{
|
||||||
|
public int? referee_Id { get; set; }
|
||||||
|
|
||||||
|
public int? judge_Id { get; set; }
|
||||||
|
|
||||||
|
public string? Remarks { get; set; }
|
||||||
public string team1_name { get; set; }
|
public string team1_name { get; set; }
|
||||||
public string team2_name { get; set; }
|
public string team2_name { get; set; }
|
||||||
public string opentime { get; set; }
|
public string opentime { get; set; }
|
||||||
|
@ -8,6 +8,7 @@ using NLog;
|
|||||||
using RestSharp;
|
using RestSharp;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using static asg_form.Controllers.InviteReferee;
|
using static asg_form.Controllers.InviteReferee;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace asg_form.Controllers
|
namespace asg_form.Controllers
|
||||||
{
|
{
|
||||||
@ -44,10 +45,11 @@ namespace asg_form.Controllers
|
|||||||
|
|
||||||
[Route("api/v1/Codepush/")]
|
[Route("api/v1/Codepush/")]
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<object> Codepush([FromBody]dynamic date)
|
public async Task<object> Codepush([FromBody]dynamic date1)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
dynamic date = JsonConvert.DeserializeObject(Convert.ToString(date1));
|
||||||
var message = new MessageBuilder().Text($"后端推送了新的代码库\r\n详细信息:{date.message.text}").Build();
|
var message = new MessageBuilder().Text($"后端推送了新的代码库\r\n详细信息:{date.message.text}").Build();
|
||||||
|
|
||||||
await runbot.runbotr.SendMessageAsync(MessageEnvironment.Channel, "931217544", null, message, "931217544");
|
await runbot.runbotr.SendMessageAsync(MessageEnvironment.Channel, "931217544", null, message, "931217544");
|
||||||
@ -64,11 +66,13 @@ namespace asg_form.Controllers
|
|||||||
|
|
||||||
[Route("api/v1/issueadd/")]
|
[Route("api/v1/issueadd/")]
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<object> issueadd([FromBody] dynamic date)
|
public async Task<object> issueadd([FromBody] dynamic date1)
|
||||||
{
|
{
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
dynamic date = JsonConvert.DeserializeObject(Convert.ToString(date1));
|
||||||
|
|
||||||
var message = new MessageBuilder().Text($"后端有新bug被提交请及时解决!\r\n详细信息:{date.message.text}").Build();
|
var message = new MessageBuilder().Text($"后端有新bug被提交请及时解决!\r\n详细信息:{date.message.text}").Build();
|
||||||
|
|
||||||
await runbot.runbotr.SendMessageAsync(MessageEnvironment.Channel, "931217544", null, message, "931217544");
|
await runbot.runbotr.SendMessageAsync(MessageEnvironment.Channel, "931217544", null, message, "931217544");
|
||||||
|
1099
asg_form/Migrations/20241102163022_sh3.Designer.cs
generated
Normal file
1099
asg_form/Migrations/20241102163022_sh3.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
28
asg_form/Migrations/20241102163022_sh3.cs
Normal file
28
asg_form/Migrations/20241102163022_sh3.cs
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace asg_form.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class sh3 : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "Remarks",
|
||||||
|
table: "F_game",
|
||||||
|
type: "text",
|
||||||
|
nullable: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "Remarks",
|
||||||
|
table: "F_game");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -683,6 +683,9 @@ namespace asg_form.Migrations
|
|||||||
|
|
||||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("id"));
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("id"));
|
||||||
|
|
||||||
|
b.Property<string>("Remarks")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
b.Property<string>("belong")
|
b.Property<string>("belong")
|
||||||
.HasColumnType("text");
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user