diff --git a/src/cn.muxiaofei.cq_python_sdk/CQHandler.cpp b/src/cn.muxiaofei.cq_python_sdk/CQHandler.cpp index 8f19a32f330a8bd4f9a4f2268d5a41e30a60165c..6087b954e339d87c11d5a2dd3d84495897e4f551 100644 --- a/src/cn.muxiaofei.cq_python_sdk/CQHandler.cpp +++ b/src/cn.muxiaofei.cq_python_sdk/CQHandler.cpp @@ -394,6 +394,19 @@ static PyObject* CQSDK_GetGroupMemberInfoV2(PyObject* self, PyObject* args) return Py_BuildValue("s", ret); } +static PyObject* CQSDK_GetGroupMemberList(PyObject* self, PyObject* args) +{ + CQMutex_SDK __lock__; + + PyObject* arg0 = PyTuple_GetItem(args, 0); + + const char* ret = CQ_GetGroupMemberList( + PyLong_AsLongLong(arg0) + ); + + return Py_BuildValue("s", ret); +} + static PyObject* CQSDK_GetStrangerInfo(PyObject* self, PyObject* args) { CQMutex_SDK __lock__; @@ -505,6 +518,7 @@ static PyMethodDef CQSDK_funcs[] = { "SetFriendAddRequest", (PyCFunction)CQSDK_SetFriendAddRequest, METH_VARARGS, NULL }, { "SetGroupAddRequestV2", (PyCFunction)CQSDK_SetGroupAddRequestV2, METH_VARARGS, NULL }, { "GetGroupMemberInfoV2", (PyCFunction)CQSDK_GetGroupMemberInfoV2, METH_VARARGS, NULL }, + { "GetGroupMemberList", (PyCFunction)CQSDK_GetGroupMemberList, METH_VARARGS, NULL }, { "GetStrangerInfo", (PyCFunction)CQSDK_GetStrangerInfo, METH_VARARGS, NULL }, { "AddLog", (PyCFunction)CQSDK_AddLog, METH_VARARGS, NULL }, { "GetCookies", (PyCFunction)CQSDK_GetCookies, METH_VARARGS, NULL }, diff --git a/src/cn.muxiaofei.cq_python_sdk/CQP.lib b/src/cn.muxiaofei.cq_python_sdk/CQP.lib index d47e58103a11019dead3862715badf61af11da86..59076d4164bc353ca6ca1587bfaec4000304b86e 100644 Binary files a/src/cn.muxiaofei.cq_python_sdk/CQP.lib and b/src/cn.muxiaofei.cq_python_sdk/CQP.lib differ diff --git a/src/cn.muxiaofei.cq_python_sdk/appmain.cpp b/src/cn.muxiaofei.cq_python_sdk/appmain.cpp index 4863ec57d946f841bb13b06cf520f2be108d7932..ef5731e4c9ea04ec6059f15cb7d60bb0ab964d75 100644 --- a/src/cn.muxiaofei.cq_python_sdk/appmain.cpp +++ b/src/cn.muxiaofei.cq_python_sdk/appmain.cpp @@ -346,6 +346,11 @@ const char * CQ_GetGroupMemberInfoV2(int64_t groupid, int64_t QQID, CQBOOL nocac return CQ_getGroupMemberInfoV2(ac, groupid, QQID, nocache); } +const char * CQ_GetGroupMemberList(int64_t groupid) +{ + return CQ_getGroupMemberList(ac, groupid); +} + const char * CQ_GetStrangerInfo(int64_t QQID, CQBOOL nocache) { return CQ_getStrangerInfo(ac, QQID, nocache); diff --git a/src/cn.muxiaofei.cq_python_sdk/appmain.h b/src/cn.muxiaofei.cq_python_sdk/appmain.h index b9e04d6258623da3c6c01534aa19340d2aed08e3..afd999de9faf41218b21ce7dabd8fd7595ffe8ec 100644 --- a/src/cn.muxiaofei.cq_python_sdk/appmain.h +++ b/src/cn.muxiaofei.cq_python_sdk/appmain.h @@ -23,6 +23,7 @@ int32_t CQ_SetDiscussLeave(int64_t discussid); int32_t CQ_SetFriendAddRequest(const char *responseflag, int32_t responseoperation, const char *remark); int32_t CQ_SetGroupAddRequestV2(const char *responseflag, int32_t requesttype, int32_t responseoperation, const char *reason); const char * CQ_GetGroupMemberInfoV2(int64_t groupid, int64_t QQID, CQBOOL nocache); +const char * CQ_GetGroupMemberList(int64_t groupid); const char * CQ_GetStrangerInfo(int64_t QQID, CQBOOL nocache); int32_t CQ_AddLog(int32_t priority, const char *category, const char *content); const char * CQ_GetCookies(); diff --git a/src/cn.muxiaofei.cq_python_sdk/cqp.h b/src/cn.muxiaofei.cq_python_sdk/cqp.h index 88c5a644e0baa646a34dd67d5bcee749dbd10b85..6d45d0e667e1a9d0c5ecbd42d1a4331efbac7b13 100644 --- a/src/cn.muxiaofei.cq_python_sdk/cqp.h +++ b/src/cn.muxiaofei.cq_python_sdk/cqp.h @@ -53,6 +53,7 @@ CQAPI(int32_t) CQ_setDiscussLeave(int32_t AuthCode, int64_t discussid); CQAPI(int32_t) CQ_setFriendAddRequest(int32_t AuthCode, const char *responseflag, int32_t responseoperation, const char *remark); CQAPI(int32_t) CQ_setGroupAddRequestV2(int32_t AuthCode, const char *responseflag, int32_t requesttype, int32_t responseoperation, const char *reason); CQAPI(const char *) CQ_getGroupMemberInfoV2(int32_t AuthCode, int64_t groupid, int64_t QQID, CQBOOL nocache); +CQAPI(const char *) CQ_getGroupMemberList(int32_t AuthCode, int64_t groupid); CQAPI(const char *) CQ_getStrangerInfo(int32_t AuthCode, int64_t QQID, CQBOOL nocache); CQAPI(int32_t) CQ_addLog(int32_t AuthCode, int32_t priority, const char *category, const char *content); CQAPI(const char *) CQ_getCookies(int32_t AuthCode);