|
|
@@ -184,11 +184,22 @@ public class YtAppUserServiceImpl implements YtAppUserService {
|
|
|
|
|
|
private ResultTable<YtUserEcpmListView> ecpmListV1(AdRecordListParam param) {
|
|
|
YtApp ytApp = appMapper.selectPrimary(param.getAppId());
|
|
|
- YtPlatformUserApp app = agentAppMapper.selectByPrimaryKey(ytApp.getSuperiorId());
|
|
|
+ Object o;
|
|
|
if (Objects.isNull(param.getAdsourceType())) {
|
|
|
param.setAdsourceType("888");
|
|
|
}
|
|
|
- Object o = feignInvoker.invoke(app.getServiceName(), "adRecords", param.getUserId(), Integer.parseInt(param.getAdsourceType()));
|
|
|
+ if (ytApp == null) {
|
|
|
+ YtPlatformUserApp app = agentAppMapper.selectByPrimaryKey(param.getAppId());
|
|
|
+ if (app != null) {
|
|
|
+ o = feignInvoker.invoke(app.getServiceName(), "adRecords", param.getUserId(), Integer.parseInt(param.getAdsourceType()));
|
|
|
+ } else {
|
|
|
+ o = feignInvoker.invoke("lemonios-service", "adRecords", param.getUserId(), Integer.parseInt(param.getAdsourceType()));
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ YtPlatformUserApp app = agentAppMapper.selectByPrimaryKey(ytApp.getSuperiorId());
|
|
|
+ o = feignInvoker.invoke(app.getServiceName(), "adRecords", param.getUserId(), Integer.parseInt(param.getAdsourceType()));
|
|
|
+ }
|
|
|
+
|
|
|
JSONObject object = JSONObject.parseObject(JSON.toJSONString(o));
|
|
|
List<YtDyzAdRecord> records = JSONArray.parseArray(object.getString("data"), YtDyzAdRecord.class);
|
|
|
PageMeta pageMeta = JSON.parseObject(object.getString("pageMeta"), PageMeta.class);
|