|
|
|
@@ -343,4 +343,21 @@ public class WxCardController extends BaseController { |
|
|
|
} |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "失效卡") |
|
|
|
@GetMapping("unavailableCardCode/{appId}") |
|
|
|
public ResultData unavailableCardCode(@PathVariable String appId, String code) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxCardController::unavailableCardCode"); |
|
|
|
String cardId = "pnxhD5rozwYIX7j210S9thySoN0w"; |
|
|
|
String reason = "会员卡退卡"; |
|
|
|
|
|
|
|
WxMpService mpService = openService.getWxOpenComponentService().getWxMpServiceByAppid(appId); |
|
|
|
try { |
|
|
|
String result = mpService.getCardService().unavailableCardCode(cardId, code, reason); |
|
|
|
logger.info(result); |
|
|
|
} catch (WxErrorException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
} |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
} |