| | |
| | |
|
| | |
|
| | | /**
|
| | | * |
| | | * 口令领取
|
| | | * @param acceptData
|
| | | * @param kw
|
| | | * @param goodsType
|
| | |
| | | @RequestMapping(value = "tokenReceive", method = RequestMethod.POST)
|
| | | public void tokenReceive(AcceptData acceptData, Long uid, String token, PrintWriter out) {
|
| | | try {
|
| | | tokenRecordService.receiveToken(token, uid);
|
| | | out.print(JsonUtil.loadTrueResult("领取成功"));
|
| | | String msg = tokenRecordService.receiveToken(token, uid);
|
| | | out.print(JsonUtil.loadTrueResult(msg));
|
| | | } catch (TokenRecordException e) {
|
| | | out.print(JsonUtil.loadFalseResult(e.getCode(), e.getMsg()));
|
| | | }
|