如何在30天后自动更新用户数据 [英] How to automatically update a user data after 30 days

查看:92
本文介绍了如何在30天后自动更新用户数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个网站上工作,该网站要求每30天后自动从用户中扣除一定金额。例如,用户将钱存入他在网站中的帐户,如果用户请求费用为3美元的特定服务,则应自动扣除他的帐户3美元。我想要的是系统应该能够自动完成,而无需任何人手动完成。请有人帮我提供能够做到这一点的代码。



我尝试过的事情:



没什么。 ..

I am working on a website which demands an auto deduction of a certain amount from a user every after 30 days. For example a user is to deposit money into his account in the website, if the user makes a request for a particular service that cost $3, $3 should be automatically be deducted for his account. What I want is that the system should be able to do that automatically without anyone doing it manually. Please someone should help me with a code that can do that.

What I have tried:

Nothing. ..

推荐答案

3,


3应该自动扣除他的帐户。我想要的是系统应该能够自动完成,而无需任何人手动完成。请有人帮我提供能够做到这一点的代码。



我尝试过的事情:



没什么。 ..
3 should be automatically be deducted for his account. What I want is that the system should be able to do that automatically without anyone doing it manually. Please someone should help me with a code that can do that.

What I have tried:

Nothing. ..


有一些选项可供您在ASP.NET中实现和运行预定作业。一些流行的有 Quartz.Net FluentScheduler HangFire



以下是一些可能有助于您入门的很好的例子:

(1) ASP.NET中的计划任务使用Quartz.Net [^]

(2)在ASP.NET Core中使用Hangfire安排后台作业[^]



我们有一些使用Quartz.Net的网络应用程序,它似乎工作正常。话虽如此,您可能仍然希望将Windows服务作为替代方案。
There are a few options that are out there which you can use to implement and run scheduled jobs in ASP.NET. Some of the popular out there are Quartz.Net , FluentSchedulerand HangFire.

Here are some great examples that might help you get started:
(1)Scheduled Tasks In ASP.NET With Quartz.Net[^]
(2)Schedule Background Jobs Using Hangfire In ASP.NET Core[^]

We have a few web apps that uses Quartz.Net and it seems to work just fine. Having that said, you may still want to look at Windows Service as an alternative.


这篇关于如何在30天后自动更新用户数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆