0元支付 支付成功
This commit is contained in:
@@ -108,7 +108,7 @@ public class CzgControllerAdvice {
|
|||||||
*/
|
*/
|
||||||
@ExceptionHandler(PaySuccessException.class)
|
@ExceptionHandler(PaySuccessException.class)
|
||||||
public CzgResult<Object> handlePaySuccessException() {
|
public CzgResult<Object> handlePaySuccessException() {
|
||||||
return CzgResult.success();
|
return CzgResult.success("支付成功");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -218,9 +218,12 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HistoryOrderVo historyOrder(Long orderId, String tableCode) {
|
public HistoryOrderVo historyOrder(Long orderId, String tableCode) {
|
||||||
if (orderId == null && StrUtil.isBlank(tableCode)) {
|
if (orderId == null || StrUtil.isBlank(tableCode)) {
|
||||||
throw new ValidateException("订单id或台桌码不可为空");
|
throw new ValidateException("订单id或台桌码不可为空");
|
||||||
}
|
}
|
||||||
|
if("null".equals(tableCode) || "undefined".equals(tableCode)){
|
||||||
|
throw new ValidateException("台桌码不可用");
|
||||||
|
}
|
||||||
HistoryOrderVo historyOrderVo;
|
HistoryOrderVo historyOrderVo;
|
||||||
if (orderId == null) {
|
if (orderId == null) {
|
||||||
historyOrderVo = queryChain()
|
historyOrderVo = queryChain()
|
||||||
|
|||||||
Reference in New Issue
Block a user