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