MCPcopy Create free account
hub / github.com/GrowthEase/GameSentry / hookFunction

Function hookFunction

res/static/js/function.js:93–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91}
92
93function hookFunction() {
94 if (!select_function_value || !select_image_value || !select_class_value) {
95 alert("请选择对应的函数")
96 return
97 }
98 $.ajax({
99 url: '/hook_method_info',
100 type: 'POST',
101 data: {
102 "method_handle": select_function_value.addr,
103 "class_handle": select_class_value.addr,
104 "method_type": select_function_value.className,
105 "class_name": select_class_value.name,
106 "nameSpace": select_class_value.nameSpace,
107 "img_name": select_image_value.name,
108 "method_name": select_function_value.name,
109 "parameters": select_function_value.parameters,
110 },
111 dataType: 'json',
112 success: function (res) {
113 alert("配置成功")
114 },
115 error: function (res) {
116 alert("配置失败")
117 }
118 });
119}
120
121function sendFunctionValue(is_resend) {
122 let put_function_value = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected