瀏覽代碼

修改代理商新增应用不带渠道ID

marxjaw 2 月之前
父節點
當前提交
153a052a25

+ 1 - 1
yt-agent/agent-service/src/main/java/com/ytpm/service/impl/AgentAppServiceImpl.java

@@ -146,7 +146,7 @@ public class AgentAppServiceImpl implements AgentAppService {
         int appType = Integer.parseInt(index + substr);
         //远程调用指定应用保存 应用的出包配置
         YtPlatformUserApp superior = agentAppMapper.selectByPrimaryKey(param.getSuperiorId());
-        YtAppDefaultConfig config = new YtAppDefaultConfig(null, param.getAppName(), vo.getWxAppId(), vo.getWxSecret(), app.getAppId(), app.getAppId(), appType);
+        YtAppDefaultConfig config = new YtAppDefaultConfig(null, param.getAppName(), vo.getWxAppId(), vo.getWxSecret(), app.getAppId(), app.getAppId(), appType,ditchId);
         feignInvoker.invoke(superior.getServiceName(), "saveAppConfig",config);
     }
 

+ 2 - 1
yt-common/src/main/java/com/ytpm/app/model/YtAppDefaultConfig.java

@@ -64,7 +64,7 @@ public class YtAppDefaultConfig {
     private String ditchId;
 
 
-    public YtAppDefaultConfig(Object o, String appName, String wxAppId, String wxSecret, String appId, String appKey, int appType) {
+    public YtAppDefaultConfig(Object o, String appName, String wxAppId, String wxSecret, String appId, String appKey, int appType,String ditchId) {
         this.configId = Objects.isNull(o)?null: Integer.parseInt(o.toString());
         this.configName = appName;
         this.openId = wxAppId;
@@ -72,5 +72,6 @@ public class YtAppDefaultConfig {
         this.appId = appId;
         this.appKey = appKey;
         this.appType = appType;
+        this.ditchId = ditchId;
     }
 }