#292 增加小程序码支持
* 更新小程序二维码(小程序码)接口 修复小程序模板推送读取错误字段导致的NullPoint * 更新小程序二维码(小程序码)接口 修复小程序模板推送读取错误字段导致的NullPoint * 更正WxMaMsgService接口逻辑 * 使用IDEA对miniapp做了批量格式化
This commit is contained in:
@@ -9,7 +9,8 @@ import com.google.common.collect.Lists;
|
||||
import com.google.inject.Inject;
|
||||
import me.chanjar.weixin.common.api.WxConsts;
|
||||
import me.chanjar.weixin.common.exception.WxErrorException;
|
||||
import org.testng.annotations.*;
|
||||
import org.testng.annotations.Guice;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
@@ -23,4 +23,16 @@ public class WxMaQrcodeServiceImplTest {
|
||||
System.out.println(qrCode);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCreateWxCode() throws Exception {
|
||||
final File wxCode = this.wxService.getQrcodeService().createWxCode("111", 122);
|
||||
System.out.println(wxCode);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCreateWxCodeLimit() throws Exception {
|
||||
final File wxCode = this.wxService.getQrcodeService().createWxCodeLimit("111", null);
|
||||
System.out.println(wxCode);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package cn.binarywang.wx.miniapp.bean;
|
||||
|
||||
import cn.binarywang.wx.miniapp.bean.WxMaMessage;
|
||||
import me.chanjar.weixin.common.api.WxConsts;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ package cn.binarywang.wx.miniapp.demo;
|
||||
|
||||
import cn.binarywang.wx.miniapp.api.WxMaService;
|
||||
import cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl;
|
||||
import cn.binarywang.wx.miniapp.bean.WxMaMessage;
|
||||
import cn.binarywang.wx.miniapp.bean.WxMaKefuMessage;
|
||||
import cn.binarywang.wx.miniapp.bean.WxMaMessage;
|
||||
import cn.binarywang.wx.miniapp.bean.WxMaTemplateMessage;
|
||||
import cn.binarywang.wx.miniapp.config.WxMaConfig;
|
||||
import cn.binarywang.wx.miniapp.constant.WxMaConstants;
|
||||
@@ -69,7 +69,7 @@ public class WxMaDemoServer {
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
private static final WxMaMessageHandler qrcodeHandler = new WxMaMessageHandler() {
|
||||
@Override
|
||||
public void handle(WxMaMessage wxMessage, Map<String, Object> context,
|
||||
|
||||
Reference in New Issue
Block a user