Implement /api/notice/reward

This commit is contained in:
Ethan O'Brien
2024-04-29 09:34:35 -05:00
parent d179bd80a9
commit dbcec25ffd
4 changed files with 17 additions and 5 deletions

View File

@ -36,7 +36,9 @@ pub fn deck(req: HttpRequest, body: String) -> HttpResponse {
pub fn user(req: HttpRequest) -> HttpResponse {
let key = global::get_login(req.headers(), "");
let user = userdata::get_acc(&key);
let mut user = userdata::get_acc(&key);
user["lottery_list"] = array![];
let resp = object!{
"code": 0,