Skip to content

Commit 28249b0

Browse files
committed
feat: 传给py的是 资源id
1 parent d712b8b commit 28249b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ int PyWrapper::wrapperLoadRes(pDataList p, unsigned int resId) {
565565
return ret;
566566
}
567567

568-
int PyWrapper::wrapperUnloadRes(unsigned int resId) {
568+
int PyWrapper::wrapperUnloadRes(std::string resId) {
569569
py::gil_scoped_acquire acquire;
570570
// 执行python exec 推理
571571
int ret = _wrapperUnloadRes(resId).cast<int>();;

pyWrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class PyWrapper {
150150

151151
int wrapperLoadRes(pDataList perData, unsigned int resId);
152152

153-
int wrapperUnloadRes(unsigned int resId);
153+
int wrapperUnloadRes(std::string resId);
154154

155155
void setCallBack(wrapperCallback cb);
156156

0 commit comments

Comments
 (0)