|
|
|
@@ -392,4 +392,16 @@ public class WechatCalllbackController extends BaseController { |
|
|
|
return new ResultData(Result.ERROR, e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping(value = "/clearQuota") |
|
|
|
@ApiOperation("代公众号清零quota,每个公众号每个月有10次清零机会,包括在微信公众平台上的清零以及调用API进行清零") |
|
|
|
public ResultData clearQuota(@RequestParam(value = "appId") String appId) { |
|
|
|
try { |
|
|
|
openService.getWxOpenComponentService().getWxMpServiceByAppid(appId).clearQuota(appId); |
|
|
|
return new ResultData(); |
|
|
|
} catch (WxErrorException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
return new ResultData(Result.ERROR, e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |