1.排队取号 限制同一微信订阅次数

This commit is contained in:
2024-09-23 16:54:37 +08:00
parent 43ef3695e1
commit 7b996aff93
2 changed files with 20 additions and 7 deletions

View File

@@ -37,13 +37,10 @@ public class TbCallTableController {
*/
@GetMapping("queue")
public Result get(
@RequestParam(required = false) String openId,
@RequestParam String openId,
@RequestParam Integer shopId,
@RequestParam(required = false) Integer queueId
) {
if (StrUtil.isBlank(openId) && queueId == null) {
return Result.fail("shopId和queueId不能同时为空");
}
return Result.successWithData(tbCallService.getList(shopId, openId, queueId));
}
@@ -73,7 +70,7 @@ public class TbCallTableController {
return Result.successWithData(tbCallService.getState(openId, shopId, queueId));
}
@PutMapping("subMsg")
@PostMapping("subMsg")
public Result subMsg(
@Validated @RequestBody CallSubMsgDTO subMsgDTO
) {