Skip to content

Commit d57e88e

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

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pyWrapper.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ int PyWrapper::wrapperExecFree(const char *usrTag) {
534534
return 0;
535535
}
536536

537-
int PyWrapper::wrapperLoadRes(pDataList p, unsigned int resId) {
537+
int PyWrapper::wrapperLoadRes(pDataList p, std::string patch_id) {
538538
DataListCls perData;
539539
//构建请求数据
540540
int dataNum = 0;
@@ -554,21 +554,21 @@ int PyWrapper::wrapperLoadRes(pDataList p, unsigned int resId) {
554554
char t = static_cast<int>(p->type);
555555
item.type = p->type;
556556
item.status = p->status;
557-
spdlog::debug("reqDatatype :{},resID:{}", p->type, resId);
557+
spdlog::debug("reqDatatype :{},patch_id:{}", p->type, patch_id);
558558
perData.list.push_back(item);
559559
p = p->next;
560560
}
561561
}
562562
py::gil_scoped_acquire acquire;
563563
// 执行python exec 推理
564-
int ret = _wrapperLoadRes(perData, resId).cast<int>();;
564+
int ret = _wrapperLoadRes(perData, patch_id).cast<int>();;
565565
return ret;
566566
}
567567

568-
int PyWrapper::wrapperUnloadRes(std::string resId) {
568+
int PyWrapper::wrapperUnloadRes(std::string patch_id) {
569569
py::gil_scoped_acquire acquire;
570570
// 执行python exec 推理
571-
int ret = _wrapperUnloadRes(resId).cast<int>();;
571+
int ret = _wrapperUnloadRes(patch_id).cast<int>();;
572572
return ret;
573573
}
574574

pyWrapper.h

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

149149
int wrapperTest();
150150

151-
int wrapperLoadRes(pDataList perData, unsigned int resId);
151+
int wrapperLoadRes(pDataList perData, std::string resId);
152152

153153
int wrapperUnloadRes(std::string resId);
154154

0 commit comments

Comments
 (0)