Commit 15ec7023 by 程裕兵

feat:添加半屏小程序

parent fab00c3f
......@@ -16,11 +16,13 @@ import java.util.stream.Collectors;
*/
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();
record.setId(IdWorker.getId());
record.setAppId(appId);
// record.setAuthorizerAppId(vo.getAuthorizerAppId());
record.setComponentAppId(componentAppId);
record.setAppId(systemXcxAppId);
record.setAuthorizerAppId(authorizerAppId);
record.setStudioId(studioId);
record.setState(EmbededXcxEnum.INIT.getCode());
record.setCreateTime(new Date());
......
......@@ -265,7 +265,8 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
.filter(appId -> null == existMap.get(appId))
.forEach(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);
try {
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