1
0
mirror of synced 2025-12-20 23:58:05 +08:00

按照最新文档对客服管理接口进行修正

This commit is contained in:
BinaryWang
2016-07-12 18:00:30 +08:00
parent 754e09ea02
commit 3534234d91
5 changed files with 109 additions and 67 deletions

View File

@@ -60,7 +60,7 @@ public class WxMpKefuServiceImplTest {
@Test(dataProvider = "getKfAccount")
public void testKfAccountAdd(String kfAccount) throws WxErrorException {
WxMpKfAccountRequest request = WxMpKfAccountRequest.builder()
.kfAccount(kfAccount).nickName("我晕").rawPassword("123").build();
.kfAccount(kfAccount).nickName("我晕").build();
Assert.assertTrue(this.wxService.getKefuService().kfAccountAdd(request));
}
@@ -68,10 +68,18 @@ public class WxMpKefuServiceImplTest {
"testKfAccountAdd" }, dataProvider = "getKfAccount")
public void testKfAccountUpdate(String kfAccount) throws WxErrorException {
WxMpKfAccountRequest request = WxMpKfAccountRequest.builder()
.kfAccount(kfAccount).nickName("我晕").rawPassword("123").build();
.kfAccount(kfAccount).nickName("我晕").build();
Assert.assertTrue(this.wxService.getKefuService().kfAccountUpdate(request));
}
@Test(dependsOnMethods = {
"testKfAccountAdd" }, dataProvider = "getKfAccount")
public void testKfAccountInviteWorker(String kfAccount) throws WxErrorException {
WxMpKfAccountRequest request = WxMpKfAccountRequest.builder()
.kfAccount(kfAccount).inviteWx("www_ucredit_com").build();
Assert.assertTrue(this.wxService.getKefuService().kfAccountInviteWorker(request));
}
@Test(dependsOnMethods = {
"testKfAccountUpdate" }, dataProvider = "getKfAccount")
public void testKfAccountUploadHeadImg(String kfAccount)