SocialSisterYi / xuexiaoyi-to-xuexitong-tampermonkey-proxy

基于“学小易”搜题API的学习通答题/考试油猴脚本题库代理
MIT License
168 stars 20 forks source link

能否提供一个脚本模板 #15

Open d4renk opened 1 year ago

d4renk commented 1 year ago

我测试文本解密失败

Traceback
127.0.0.1 - - [25/Oct/2022 20:30:35] "POST /decrypt HTTP/1.1" 500 -
[2022-10-25 20:30:35,875] ERROR in app: Exception on /decrypt [POST]
Traceback (most recent call last):
  File "D:\code\Scoop_Global\apps\python\current\lib\site-packages\flask\app.py", line 2525, in wsgi_app
    response = self.full_dispatch_request()
  File "D:\code\Scoop_Global\apps\python\current\lib\site-packages\flask\app.py", line 1822, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "D:\code\Scoop_Global\apps\python\current\lib\site-packages\flask\app.py", line 1820, in full_dispatch_request
    rv = self.dispatch_request()
  File "D:\code\Scoop_Global\apps\python\current\lib\site-packages\flask\app.py", line 1796, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "C:\Users\Ykiss\cx\xuexiaoyi-to-xuexitong-tampermonkey-proxy\app.py", line 131, in decryptView
    font_hashmap = cxsecret_font.font2map(key_font_b64) # 创建加密字体hash map
  File "C:\Users\Ykiss\cx\xuexiaoyi-to-xuexitong-tampermonkey-proxy\cxsecret_font.py", line 57, in font2map
    font_hashmap[code] = hash_glyph(glyph._glyph)
AttributeError: '_TTGlyphGlyf' object has no attribute '_glyph'

能否提供一个脚本模板 我测试的脚本https://github.com/d4renk/xuexiaoyi-to-xuexitong-tampermonkey-proxy/blob/main/example.user.js