Commit f79bbffd by zhouhaibao

[+]修改群码获取方式

1 parent fdfb0d9b
...@@ -97,7 +97,7 @@ public class UsedCarCustomerGroupCodeStrategy implements CustomerGroupCodeStrate ...@@ -97,7 +97,7 @@ public class UsedCarCustomerGroupCodeStrategy implements CustomerGroupCodeStrate
// 创建企微客群码请求 // 创建企微客群码请求
AddGroupChatJoinWayRequestDTO wechatRequest = new AddGroupChatJoinWayRequestDTO(); AddGroupChatJoinWayRequestDTO wechatRequest = new AddGroupChatJoinWayRequestDTO();
wechatRequest.setScene(2); // 2-群的二维码插件 wechatRequest.setScene(1); // 2-群的二维码插件
wechatRequest.setRemark(request.getChatName()); wechatRequest.setRemark(request.getChatName());
wechatRequest.setAutoCreateRoom(1); // 自动建群 wechatRequest.setAutoCreateRoom(1); // 自动建群
wechatRequest.setRoomBaseName(request.getChatName()); wechatRequest.setRoomBaseName(request.getChatName());
......
...@@ -58,7 +58,7 @@ public class CustomerGroupCodeStrategyTest { ...@@ -58,7 +58,7 @@ public class CustomerGroupCodeStrategyTest {
public void testQueryGroupCodeInfo() { public void testQueryGroupCodeInfo() {
CustomerGroupCodeRequest request = new CustomerGroupCodeRequest(); CustomerGroupCodeRequest request = new CustomerGroupCodeRequest();
request.setBusinessType(CustomerGroupCodeBusinessTypeEnum.USED_CAR); request.setBusinessType(CustomerGroupCodeBusinessTypeEnum.USED_CAR);
request.setConfigId("b8fd9d37151919f5217d5870e5883d98"); request.setConfigId("daf0ecda6f29bc09fded8735f80ada3f");
CustomerGroupCodeStrategy strategy = customerGroupCodeStrategyFactory.getStrategy(CustomerGroupCodeBusinessTypeEnum.USED_CAR); CustomerGroupCodeStrategy strategy = customerGroupCodeStrategyFactory.getStrategy(CustomerGroupCodeBusinessTypeEnum.USED_CAR);
CustomerGroupCodeResponse result = strategy.queryGroupCodeInfo(request); CustomerGroupCodeResponse result = strategy.queryGroupCodeInfo(request);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!