Commit 15ec7023 by 程裕兵

feat:添加半屏小程序

parent fab00c3f
...@@ -16,11 +16,13 @@ import java.util.stream.Collectors; ...@@ -16,11 +16,13 @@ import java.util.stream.Collectors;
*/ */
public class StudioEmbeddedXcxConvert { public class StudioEmbeddedXcxConvert {
public static StudioEmbeddedXcxApply toEntity(Long studioId, String appId) { public static StudioEmbeddedXcxApply toEntity(Long studioId, String componentAppId, String systemXcxAppId,
String authorizerAppId) {
StudioEmbeddedXcxApply record = new StudioEmbeddedXcxApply(); StudioEmbeddedXcxApply record = new StudioEmbeddedXcxApply();
record.setId(IdWorker.getId()); record.setId(IdWorker.getId());
record.setAppId(appId); record.setComponentAppId(componentAppId);
// record.setAuthorizerAppId(vo.getAuthorizerAppId()); record.setAppId(systemXcxAppId);
record.setAuthorizerAppId(authorizerAppId);
record.setStudioId(studioId); record.setStudioId(studioId);
record.setState(EmbededXcxEnum.INIT.getCode()); record.setState(EmbededXcxEnum.INIT.getCode());
record.setCreateTime(new Date()); record.setCreateTime(new Date());
......
...@@ -265,7 +265,8 @@ public class StudioMerchantServiceImpl implements StudioMerchantService { ...@@ -265,7 +265,8 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
.filter(appId -> null == existMap.get(appId)) .filter(appId -> null == existMap.get(appId))
.forEach(appId -> { .forEach(appId -> {
log.info("bind embedded xcx {}, {}", studioId, appId); log.info("bind embedded xcx {}, {}", studioId, appId);
StudioEmbeddedXcxApply entity = StudioEmbeddedXcxConvert.toEntity(studioId, appId); StudioEmbeddedXcxApply entity = StudioEmbeddedXcxConvert.toEntity(studioId, wxComponentAppId,
systemXcxAppId, appId);
studioEmbeddedXcxApplyRpService.insert(entity); studioEmbeddedXcxApplyRpService.insert(entity);
try { try {
JSONObject result = weXcxService.addEmbeddedXcx(wxComponentAppId, appId, systemXcxAppId, JSONObject result = weXcxService.addEmbeddedXcx(wxComponentAppId, appId, systemXcxAppId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment