|
|
|
@@ -293,6 +293,20 @@ public class WxCardController extends BaseController { |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("核销Code接口") |
|
|
|
@GetMapping("consumeCode/{appId}") |
|
|
|
public ResultData consumeCode(@PathVariable String appId, String code) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxCardController::consumeCode"); |
|
|
|
try { |
|
|
|
WxMpService mpService = openService.getWxOpenComponentService().getWxMpServiceByAppid(appId); |
|
|
|
String result = mpService.getCardService().consumeCardCode(code, null); |
|
|
|
logger.info(result); |
|
|
|
} catch (WxErrorException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
} |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("查看卡券详情") |
|
|
|
@GetMapping("cardGet/{appId}") |
|
|
|
public ResultData cardGet(@PathVariable String appId, String cardId) { |
|
|
|
|