예제 #1
0
 @RequestMapping("/find")
 @AopLogModule(name = C.LOG_MODULE_PCRM, layer = C.LOG_LAYER_CONTROLLER)
 public @ResponseBody String findSubscribe(
     @RequestParam String appkey, @RequestParam String sellernick) {
   Subscriber s = lkp.getSubscribers().get(appkey + "_" + sellernick);
   return s.toString();
 }
예제 #2
0
 @RequestMapping(value = "/update")
 @AopLogModule(name = C.LOG_MODULE_PCRM, layer = C.LOG_LAYER_CONTROLLER)
 public @ResponseBody String saveOrUpdateSession(
     HttpServletRequest request, String appkey, String seller, String session) {
   String result = "false";
   System.out.println(appkey + ":" + seller + session);
   seller = seller.replace("cntaobao", "").split(":")[0];
   try {
     UserGetResponse resp = topService.getUserInfo(seller);
     if (resp.isSuccess()) {
       Long userid = resp.getUser().getUserId();
       result = String.valueOf(lkp.saveOrUpdateSession(userid, seller, appkey, session));
     } else System.out.println("error:" + resp.getSubMsg());
   } catch (ApiException e) {
     e.printStackTrace();
   }
   // request.setAttribute("result", result);
   return "result:" + result;
 }