@IocBean
@At("/open/weixin")
public class WeixinController {
private static final Log log = Logs.get();
@Inject
WxConfigService wxConfigService;
@Inject
WxHandler wxHandler;
/*protected BasicWxHandler wxHandler = new BasicWxHandler("1234567890");*/
public WeixinController() {
Wxs.enableDevMode(); // 开启debug模式,这样就会把接收和发送的内容统统打印,方便查看
}
@At({"/api", "/api/?"})
@Fail("http:200")
public View msgIn(String key, HttpServletRequest req) throws IOException {
return Wxs.handle(wxHandler, req, key);
}
}
昨天试了用nutz做微信后台,
内网穿透 http://1037424761.ngrok.wendal.cn/appService/open/weixin/api
到了@At({"/api", "/api/?"})方法体里面 String key怎么获得?