This commit is contained in:
雷欧(林平凡)
2025-03-20 19:26:24 +08:00
parent 4109622e42
commit c655d9154a

View File

@@ -859,9 +859,9 @@ public String createGiftCoupon(String skuId, double amount, int quantity,String
}
// 修改activateGiftMoney方法调用真实接口
private boolean activateGiftMoney(String skuId, double amount, int quantity) {
private boolean activateGiftMoney(String skuId, double amount, int quantity,String owner) {
try {
String giftKey = createGiftCoupon(skuId, amount, quantity);
String giftKey = createGiftCoupon(skuId, amount, quantity,owner);
if (giftKey != null) {
// 可在此处保存礼金批次ID到用户状态
return true;
@@ -874,7 +874,8 @@ private boolean activateGiftMoney(String skuId, double amount, int quantity) {
// 新增礼金停止方法(可选)
public boolean stopGiftCoupon(String giftKey) throws Exception {
JdClient client = new DefaultJdClient(SERVER_URL, LPF_APP_KEY_DG, LPF_SECRET_KEY_DG);
JdClient client = new DefaultJdClient(SERVER_URL, ACCESS_TOKEN, LPF_APP_KEY_WZ, LPF_APP_KEY_WZ);
UnionOpenCouponGiftStopRequest request = new UnionOpenCouponGiftStopRequest();
StopGiftCouponReq couponReq = new StopGiftCouponReq();