1.代客下单 失败添加消息提示
This commit is contained in:
parent
a08d181e77
commit
7b91549664
|
|
@ -188,7 +188,12 @@ public class TbPlaceController {
|
||||||
public ResponseEntity<Object> pay(
|
public ResponseEntity<Object> pay(
|
||||||
@Validated @RequestBody PayDTO payDTO
|
@Validated @RequestBody PayDTO payDTO
|
||||||
) {
|
) {
|
||||||
return ResponseEntity.ok(tbShopTableService.pay(payDTO));
|
try {
|
||||||
|
|
||||||
|
return ResponseEntity.ok(tbShopTableService.pay(payDTO));
|
||||||
|
}catch (Exception e) {
|
||||||
|
return ResponseEntity.badRequest().body(e.getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@AnonymousAccess
|
@AnonymousAccess
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue