fix: idempotent 加入request_path
This commit is contained in:
parent
503953bb11
commit
ce90e11c36
|
@ -32,7 +32,7 @@ def idempotent(seconds=4):
|
|||
def wrapper(*args, **kwargs):
|
||||
rdata = args[1].data
|
||||
rdata['request_userid'] = getattr(args[1], 'user').id
|
||||
print(getattr(args[1], 'user'), rdata)
|
||||
rdata['request_path'] = getattr(args[1], 'path')
|
||||
hash_k = hash(json.dumps(rdata))
|
||||
hash_v_e = cache.get(hash_k, None)
|
||||
if hash_v_e is None:
|
||||
|
|
Loading…
Reference in New Issue