收藏
回答

使用python调用企微会话存档C_SDK,Init时报错?

import faulthandler

import base64
import ctypes
import json
import os
import Crypto
from Crypto.Cipher import PKCS1_v1_5
from Crypto.PublicKey import RSA
import time

faulthandler.enable()

dll = ctypes.cdll.LoadLibrary(r'.\FinanceSdkDemo\WeWorkFinanceSdk.dll')
new_sdk = dll.NewSdk()
result = dll.Init(new_sdk, cls.CORP_ID.encode(), cls.CHAT_SECRET.encode())


报错:

Traceback (most recent call last):

  File "D:\python_work\提取企微消息test2.py", line 32, in <module>

    init_status = dll.Init(dll.NewSdk(), corpid_buff, key_buff)

OSError: exception: access violation reading 0x00000000FC11C2E0

回答关注问题邀请回答
收藏

1 个回答

  • 秋水小夕
    秋水小夕
    2023-08-30

    大佬请问解决了吗?

    2023-08-30
    有用
    回复
登录 后发表内容