|
@@ -363,19 +363,17 @@ public class WxaUserApiController extends WxaController {
|
|
|
* 解除绑定接口
|
|
|
*/
|
|
|
public void unbind() {
|
|
|
- try {
|
|
|
- String sessionId = getPara("wxa-sessionid");
|
|
|
-
|
|
|
-
|
|
|
+ String sessionId = getPara("wxa-sessionid");
|
|
|
+// try {
|
|
|
if (StrKit.isBlank(sessionId)) {
|
|
|
Kv data = Kv.by("errcode", 500).set("errmsg", "wxa_session Header is blank for session");
|
|
|
renderJson(ErrorConstant.ERROR_WXA_SESSION_BLANK);
|
|
|
return;
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
- // TODO: handle exception
|
|
|
- renderText(e.toString());
|
|
|
- }
|
|
|
+// } catch (Exception e) {
|
|
|
+// // TODO: handle exception
|
|
|
+// renderText(e.toString());
|
|
|
+// }
|
|
|
// IAccessTokenCache accessTokenCache = ApiConfigKit.getAccessTokenCache();
|
|
|
// String sessionJson = accessTokenCache.get("wxa:session:" + sessionId);
|
|
|
// if (StrKit.isBlank(sessionJson)) {
|
|
@@ -398,7 +396,7 @@ public class WxaUserApiController extends WxaController {
|
|
|
// LoginBean loginBean = new LoginBean();
|
|
|
// loginBean.setSessionId(sessionId);
|
|
|
// renderJson(new ResultBean(loginBean));
|
|
|
- renderNull();;
|
|
|
+ renderText(sessionId);;
|
|
|
}
|
|
|
|
|
|
}
|