From 86cf4afa822e60bafc173cf027dd605ab366ec71 Mon Sep 17 00:00:00 2001 From: bujnlc8 <75124771@qq.com> Date: Wed, 8 Jun 2022 15:41:00 +0800 Subject: [PATCH] Fix cache & update cookie --- autoload/util.vim | 2 +- plugin/youdao.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/util.vim b/autoload/util.vim index 45f3d96..2bafb2e 100644 --- a/autoload/util.vim +++ b/autoload/util.vim @@ -23,7 +23,7 @@ endfunction function! util#md5(s) if executable('md5') - return system('echo -n "'.a:s.'" | md5') + return substitute(system('echo -n "'.a:s.'" | md5'), '\n', '', 'g') elseif has('python') let @b = a:s python << EOF diff --git a/plugin/youdao.py b/plugin/youdao.py index 8d8e75e..7c60770 100644 --- a/plugin/youdao.py +++ b/plugin/youdao.py @@ -28,7 +28,7 @@ 'Cookie': '', } -Cookie = 'OUTFOX_SEARCH_USER_ID=1485736359@10.108.160.102; JSESSIONID=aaaJWUsucwEMl70lf-QXx; OUTFOX_SEARCH_USER_ID_NCOO=1086609560.8868542; ' +Cookie = 'OUTFOX_SEARCH_USER_ID=-281936165@10.110.96.158; JSESSIONID=abcfry9dcEpsQ-4S-D5ey; OUTFOX_SEARCH_USER_ID_NCOO=1683608931.3345668; ' Url = 'https://fanyi.youdao.com/translate_o?smartresult=dict&smartresult=rule'