🐛 Fix json library inconsistent cause the field name different

This commit is contained in:
2025-06-23 02:08:03 +08:00
parent a97bf15362
commit 50bfec59ee
2 changed files with 69 additions and 59 deletions

View File

@ -190,9 +190,9 @@ public class SubscriptionController(SubscriptionService subscriptions, AfdianPay
}
[HttpPost("order/handle/afdian")]
public async Task<IActionResult> AfdianWebhook()
public async Task<ActionResult<WebhookResponse>> AfdianWebhook()
{
var response = await afdian.HandleWebhook(Request, async (webhookData) =>
var response = await afdian.HandleWebhook(Request, async webhookData =>
{
var order = webhookData.Order;
await subscriptions.CreateSubscriptionFromOrder(order);