提交 88ae2fe9 authored 作者: 吴德鹏's avatar 吴德鹏

优化

上级 8c910ac2
......@@ -409,6 +409,7 @@ public class DpoPayController extends Controller {
if (productSharer != null) {
sharer = userRepository.findByCode(productSharer);
}
//加入同步锁【DPO支付回调一直轮询,防止生成多次佣金】
synchronized (this) {
boolean exists = bonusRepository.existsByOrderId(orderId);
if (!exists && user.invited()) {
......
......@@ -112,7 +112,7 @@ public class StripeController extends Controller {
@GetMapping("/getPublicKey")
public Result getPublicKey() {
return new Result(PUBLIC_KEY);
return new Result().setData(PUBLIC_KEY);
}
/**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论