활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
i create a cus:WechatApiService.jssp and wct:wechatApiService.js, in wct:wechatApiService.js defined a function 'graphExec', and same business required at jssp, so i call 'graphExec' at jssp, it not able to called,
at the header of jssp, i had import the js like below, it still not able to called.
<%@ page import="/nl/core/shared/nl.js"%>
<%
loadLibrary("wct:wechatApiService.js");
//required server-side dependencies
NL.ns('NL.API');
NL.require('/nl/core/shared/core.js')
.require('/nl/core/shared/json2.js')
.require('/wct/wechatApiService.js')
.require('/nl/core/jsspcontext.js');
....
....
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
@wankang ,
Based on the code provided, it looks like you are loading the wechatApiService.js file correctly using the loadLibrary() and NL.require() functions.
However, there could be other reasons why the 'graphExec' function is not being called successfully in the JSSP file. Here are a few things to check:
If none of the above suggestions resolve the issue, it may be helpful to provide more information about the specific error message or behavior that you are experiencing.
조회 수
답글
좋아요 수
@wankang ,
Based on the code provided, it looks like you are loading the wechatApiService.js file correctly using the loadLibrary() and NL.require() functions.
However, there could be other reasons why the 'graphExec' function is not being called successfully in the JSSP file. Here are a few things to check:
If none of the above suggestions resolve the issue, it may be helpful to provide more information about the specific error message or behavior that you are experiencing.
조회 수
답글
좋아요 수
browser output below issue.
JST-310000 Error while compiling script 'get_cus_WechatApiService_jssp' line 68: graphExec is not defined.
조회 수
답글
좋아요 수
i try to use below statment to call at cus:WechatApiService.jssp,
var resultJson = graphExec('POST', 'cgi-bin/message/template/send', para, appid);
below is a issue.
JST-310000 Error while compiling script 'get_cus_WechatApiService_jssp' line 68: graphExec is not defined.
below is the function defined at wct:wechatApiService.js
WeChatApp.prototype.graphExec = function(method, path, params, appid) {
...
}
조회 수
답글
좋아요 수
it should called like this var resultJson = WeChatApp.prototype.graphExec('POST', 'cgi-bin/message/template/send', para, appid);
조회 수
답글
좋아요 수
조회 수
Likes
답글