支付回调测试
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user