|
|
@@ -135,12 +135,12 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
[Route("/leader/prize/do/{month:minlength(6)}")]
|
|
|
public string LeaderPrize(string month)
|
|
|
{
|
|
|
- if(RedisDbconn.Instance.Get<string>("LeaderTxjPrizeFlag") == "1")
|
|
|
+ if(RedisDbconn.Instance.Get<string>("LeaderTxjPrizeFlag" + month) == "1")
|
|
|
{
|
|
|
return "请勿频繁操作";
|
|
|
}
|
|
|
- RedisDbconn.Instance.Set("LeaderTxjPrizeFlag", "1");
|
|
|
- RedisDbconn.Instance.SetExpire("LeaderTxjPrizeFlag", 60);
|
|
|
+ RedisDbconn.Instance.Set("LeaderTxjPrizeFlag" + month, "1");
|
|
|
+ RedisDbconn.Instance.SetExpire("LeaderTxjPrizeFlag" + month, 60);
|
|
|
RedisDbconn.Instance.AddList("TxjQueue", month);
|
|
|
return "ok";
|
|
|
}
|