|
|
|
@ -480,8 +480,10 @@ def get_wx_ticket_login_info_cache(ticket): |
|
|
|
|
cache.delete(wx_t_key) |
|
|
|
|
return wx_ticket_info |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CacheBaseState(object): |
|
|
|
|
prefix = '' |
|
|
|
|
|
|
|
|
|
def __init__(self, prefix): |
|
|
|
|
CacheBaseState.prefix = prefix |
|
|
|
|
|
|
|
|
@ -498,6 +500,7 @@ class CacheBaseState(object): |
|
|
|
|
def del_state(cls, key): |
|
|
|
|
cache.delete(f"{cls.prefix}_{key}") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MigrateStorageState(CacheBaseState): |
|
|
|
|
def __init__(self): |
|
|
|
|
super().__init__('migrate_storage') |
|
|
|
|