Visitar URL original
#bugfix#卡券高级信息的商户服务应该为列表 by yuanqixun · Pull Request #736 · binarywang/WxJava · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
优化注释
  • Loading branch information
袁启勋
袁启勋 committed Aug 29, 2018
commit b348ecefc87ceb4f3c4811f5aed80933d32acdb5
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,9 @@ public interface WxMpCardService {
String CARD_CODE_CONSUME = "https://api.weixin.qq.com/card/code/consume";
String CARD_CODE_MARK = "https://api.weixin.qq.com/card/code/mark";
String CARD_TEST_WHITELIST = "https://api.weixin.qq.com/card/testwhitelist/set";
//创建卡券二维码
String CARD_QRCODE_CREAET = "https://api.weixin.qq.com/card/qrcode/create";
//创建货架接口
String CARD_LANDING_PAGE_CREAET = "https://api.weixin.qq.com/card/landingpage/create";



/**
* 得到WxMpService
*/
Expand Down Expand Up @@ -143,17 +139,17 @@ void markCardCode(String code, String cardId, String openId, boolean isMark) thr

/**
* 创建卡券二维码
* @param cardId
* @param outerStr
* @return
* @param cardId 卡券编号
* @param outerStr 二维码标识
* @return WxMpCardQrcodeCreateResult
*/
WxMpCardQrcodeCreateResult createQrcodeMemberCard(String cardId, String outerStr) throws WxErrorException;
WxMpCardQrcodeCreateResult createQrcodeCard(String cardId, String outerStr) throws WxErrorException;

/**
*
* @param request
* 创建卡券货架
* @param createRequest 货架创建参数
* @return
* @throws WxErrorException
*/
WxMpCardLandingPageCreateResult createLandingPage(WxMpCardLandingPageCreateRequest request) throws WxErrorException;
WxMpCardLandingPageCreateResult createLandingPage(WxMpCardLandingPageCreateRequest createRequest) throws WxErrorException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public String addTestWhiteList(String openid) throws WxErrorException {
* @param outerStr
* @return
*/
public WxMpCardQrcodeCreateResult createQrcodeMemberCard(String cardId, String outerStr) throws WxErrorException {
public WxMpCardQrcodeCreateResult createQrcodeCard(String cardId, String outerStr) throws WxErrorException {
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("action_name", "QR_CARD");
jsonObject.addProperty("expire_seconds", 1800);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.google.inject.Inject;
import me.chanjar.weixin.mp.api.WxMpCardService;
import me.chanjar.weixin.mp.api.WxMpMemberCardService;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.api.test.ApiTestModule;
import me.chanjar.weixin.mp.bean.card.*;
Expand Down Expand Up @@ -121,7 +120,7 @@ public void testAddTestWhiteList()throws Exception {
@Test
public void testCreateQrcodeMemberCard()throws Exception{
WxMpCardService cardService = this.wxService.getCardService();
WxMpCardQrcodeCreateResult response = cardService.createQrcodeMemberCard(cardId,"test");
WxMpCardQrcodeCreateResult response = cardService.createQrcodeCard(cardId,"test");
System.out.println(response);
}

Expand Down