|
@@ -4,6 +4,7 @@ import cn.hutool.core.util.StrUtil;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import com.ytpm.agent.model.YtPlatformUserApp;
|
|
import com.ytpm.agent.model.YtPlatformUserApp;
|
|
|
|
|
+import com.ytpm.app.model.YtAppDefaultConfig;
|
|
|
import com.ytpm.general.RepMessage;
|
|
import com.ytpm.general.RepMessage;
|
|
|
import com.ytpm.general.Result;
|
|
import com.ytpm.general.Result;
|
|
|
import com.ytpm.general.ResultTable;
|
|
import com.ytpm.general.ResultTable;
|
|
@@ -16,6 +17,7 @@ import com.ytpm.middle.param.AppForm;
|
|
|
import com.ytpm.middle.param.AppListParam;
|
|
import com.ytpm.middle.param.AppListParam;
|
|
|
import com.ytpm.middle.param.GrantAppParam;
|
|
import com.ytpm.middle.param.GrantAppParam;
|
|
|
import com.ytpm.middle.service.AppService;
|
|
import com.ytpm.middle.service.AppService;
|
|
|
|
|
+import com.ytpm.middle.util.FeignClientInvoker;
|
|
|
import com.ytpm.middle.view.AppListVO;
|
|
import com.ytpm.middle.view.AppListVO;
|
|
|
import com.ytpm.middle.view.DropDownVO;
|
|
import com.ytpm.middle.view.DropDownVO;
|
|
|
import com.ytpm.middle.view.FinancePaymentVO;
|
|
import com.ytpm.middle.view.FinancePaymentVO;
|
|
@@ -27,6 +29,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
|
|
|
+import java.util.List;
|
|
|
import java.util.Objects;
|
|
import java.util.Objects;
|
|
|
|
|
|
|
|
@Service
|
|
@Service
|
|
@@ -38,6 +41,8 @@ public class AppServiceImpl implements AppService {
|
|
|
private EnterpriseMapper enterpriseMapper;
|
|
private EnterpriseMapper enterpriseMapper;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private FinanceMapper financeMapper;
|
|
private FinanceMapper financeMapper;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private FeignClientInvoker feignInvoker;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 应用列表
|
|
* 应用列表
|
|
@@ -142,6 +147,15 @@ public class AppServiceImpl implements AppService {
|
|
|
YtPlatformUserApp app = new YtPlatformUserApp();
|
|
YtPlatformUserApp app = new YtPlatformUserApp();
|
|
|
BeanUtils.copyProperties(form, app);
|
|
BeanUtils.copyProperties(form, app);
|
|
|
appMapper.updateById(app);
|
|
appMapper.updateById(app);
|
|
|
|
|
+ YtAppDefaultConfig config = new YtAppDefaultConfig();
|
|
|
|
|
+ config.setTakuAppId(app.getTakuAppId());
|
|
|
|
|
+ config.setTakuKey(app.getTakuKey());
|
|
|
|
|
+ config.setTakuBannerPid(app.getTakuBannerPid());
|
|
|
|
|
+ config.setTakuNativePid(app.getTakuNativePid());
|
|
|
|
|
+ config.setTakuRewardPid(app.getTakuRewardPid());
|
|
|
|
|
+ config.setTakuInterstitialPid(app.getTakuInterstitialPid());
|
|
|
|
|
+ List<String> apps = appMapper.getAppListForSuperior(app.getAppId());
|
|
|
|
|
+ feignInvoker.invoke(app.getServiceName(), "updateAppsConfig", config, apps);
|
|
|
return Result.resultOk(RepMessage.GRANT_SUCCESS);
|
|
return Result.resultOk(RepMessage.GRANT_SUCCESS);
|
|
|
}
|
|
}
|
|
|
|
|
|