# 此处传入密文,如果接收到的数据是{"encrypt":"base64后的密文"} 328
+    # data = 'base64后的密文'
329
+    data = base64.b64decode(data)
330
+    encryption_key = encryption_key or callback_secret_key
331
+    # encryption_key = bytes(encryption_key or callback_secret_key, encoding="utf8")
332
+    # 此处传入CallbackUrlKey
333
+    e = decode_aes256(data, encryption_key)
334
+    # print(type(e))
335
+    # print(e)
336
+    # print(str(e, encoding="utf8"))
337
+    return json.loads(e)

課題 - Gogs: Go Git Service