|
@@ -1,8 +1,9 @@
|
|
|
package com.miaxis.test;
|
|
|
|
|
|
import com.miaxis.TwzdApplication;
|
|
|
-import com.miaxis.common.core.domain.entity.UserInfo;
|
|
|
+import com.miaxis.feign.service.IWxSendService;
|
|
|
import com.miaxis.spread.service.impl.WxSpreadRelationServiceImpl;
|
|
|
+import com.miaxis.wx.service.IWxGzhService;
|
|
|
import org.junit.Test;
|
|
|
import org.junit.runner.RunWith;
|
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
@@ -10,7 +11,6 @@ import org.springframework.test.context.ActiveProfiles;
|
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
-import java.util.List;
|
|
|
|
|
|
@ActiveProfiles("prodtest")
|
|
|
@SpringBootTest(classes = TwzdApplication.class)
|
|
@@ -20,10 +20,16 @@ public class NormalTest {
|
|
|
|
|
|
@Resource
|
|
|
WxSpreadRelationServiceImpl wxSpreadRelationService;
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ IWxSendService wxSendService;
|
|
|
+ @Resource
|
|
|
+ IWxGzhService wxGzhService;
|
|
|
@Test
|
|
|
public void test666() throws Exception {
|
|
|
- List<UserInfo> list = wxSpreadRelationService.getWxSpreadRelationList("ovKTX56l0yUAR-c1KKu6VsaV3Erk");
|
|
|
- System.out.println("wancheng");
|
|
|
+ String gzhToken = wxGzhService.getGzhToken();
|
|
|
+ String res = wxSendService.userInfo(gzhToken, "ovKTX59m65qpQAd-Bh0AIc5KhW3Q", "zh_CN");
|
|
|
+ System.out.println(res);
|
|
|
}
|
|
|
|
|
|
|