支付回调测试

This commit is contained in:
2024-10-09 14:27:20 +08:00
parent 680c24d2a2
commit 27ffc4fa66
2 changed files with 29 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
package cn.ysk.cashier.controller;
import cn.ysk.cashier.annotation.AnonymousAccess;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
* 回调接口
*/
@Slf4j
@RestController
@RequestMapping("/notify")
public class NotifyController {
@AnonymousAccess
@RequestMapping("/fstPay")
public Object fstPay(@RequestBody Map<String, Object> req) {
log.info("信息回调回调回调回调回调--------------------------------------------------------------------------{}", req);
return null;
}
}

View File

@@ -1955,7 +1955,8 @@ public class TbShopTableServiceImpl implements TbShopTableService {
returnOrder.setId(null);
returnOrder.setOrderNo(orderNo);
returnOrder.setRefundAmount(returnAmount);
returnOrder.setOrderType("refunding");
returnOrder.setOrderType("return");
returnOrder.setStatus("refunding");
returnOrder.setUpdatedAt(null);
returnOrder.setSystemTime(DateUtil.current());
returnOrder.setCreatedAt(DateUtil.current());