1
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user