1.代客下单 失败添加消息提示

This commit is contained in:
2024-09-05 15:01:31 +08:00
parent f458e6f77e
commit b7fc525623
3 changed files with 3 additions and 11 deletions

View File

@@ -188,12 +188,8 @@ public class TbPlaceController {
public ResponseEntity<Object> pay(
@Validated @RequestBody PayDTO payDTO
) {
try {
return ResponseEntity.ok(tbShopTableService.pay(payDTO));
}catch (Exception e) {
return ResponseEntity.badRequest().body(e.getMessage());
}
return ResponseEntity.ok(tbShopTableService.pay(payDTO));
}
@AnonymousAccess