|
@@ -87,7 +87,7 @@ namespace molilian.api.Controllers
|
|
|
//oaid = "test-oaid";
|
|
//oaid = "test-oaid";
|
|
|
#endif
|
|
#endif
|
|
|
return await UnionParseCore.UnionParseAsync(content, channel, ip, oaid, accountid);
|
|
return await UnionParseCore.UnionParseAsync(content, channel, ip, oaid, accountid);
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
[HttpPost]
|
|
[HttpPost]
|
|
|
public async Task<ActionResult> unionCoupon([FromBody] JsonElement form, [FromQuery] string a = "", [FromQuery] int t = 0, [FromQuery] string sign = "")
|
|
public async Task<ActionResult> unionCoupon([FromBody] JsonElement form, [FromQuery] string a = "", [FromQuery] int t = 0, [FromQuery] string sign = "")
|
|
@@ -263,7 +263,7 @@ namespace molilian.api.Controllers
|
|
|
result.deeplink_url,
|
|
result.deeplink_url,
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
[HttpGet]
|
|
[HttpGet]
|
|
|
public ActionResult jd_parse(string s, string s2 = "", string ip = "", string oaid = "")
|
|
public ActionResult jd_parse(string s, string s2 = "", string ip = "", string oaid = "")
|
|
|
{
|
|
{
|
|
@@ -520,9 +520,16 @@ namespace molilian.api.Controllers
|
|
|
|
|
|
|
|
try
|
|
try
|
|
|
{
|
|
{
|
|
|
|
|
+
|
|
|
|
|
+ //0:全分销类型;-1:各分销类型,1:goods 2: live 3:video 4: profile 5: unknown
|
|
|
|
|
+ int distributiontype = form.Read("distributiontype", 0);
|
|
|
|
|
+
|
|
|
|
|
+ //0:全平台;-1:各平台;1:淘宝 2:京东
|
|
|
|
|
+ int platform = form.Read("platform", 0);
|
|
|
|
|
+
|
|
|
var data = await ApiReportCore.ReportDailysAsync(form, clientIp, debug);
|
|
var data = await ApiReportCore.ReportDailysAsync(form, clientIp, debug);
|
|
|
_ = log.Info(form.GetRawText(), data.Convert2Json()).SaveAsync();
|
|
_ = log.Info(form.GetRawText(), data.Convert2Json()).SaveAsync();
|
|
|
- return new APIResult(new { success = true, data });
|
|
|
|
|
|
|
+ return new APIResult(new { success = true, platform, distributiontype, data });
|
|
|
}
|
|
}
|
|
|
catch (Exception ex)
|
|
catch (Exception ex)
|
|
|
{
|
|
{
|
|
@@ -542,9 +549,15 @@ namespace molilian.api.Controllers
|
|
|
|
|
|
|
|
try
|
|
try
|
|
|
{
|
|
{
|
|
|
|
|
+ //0:全分销类型;-1:各分销类型,1:goods 2: live 3:video 4: profile 5: unknown
|
|
|
|
|
+ int distributiontype = form.Read("distributiontype", 0);
|
|
|
|
|
+
|
|
|
|
|
+ //0:全平台;-1:各平台;1:淘宝 2:京东
|
|
|
|
|
+ int platform = form.Read("platform", 0);
|
|
|
|
|
+
|
|
|
var data = await ApiReportCore.ReportDailysAsync(form, clientIp, debug);
|
|
var data = await ApiReportCore.ReportDailysAsync(form, clientIp, debug);
|
|
|
_ = log.Info(form.GetRawText(), data.Convert2Json()).SaveAsync();
|
|
_ = log.Info(form.GetRawText(), data.Convert2Json()).SaveAsync();
|
|
|
- return new APIResult(new { success = true, data });
|
|
|
|
|
|
|
+ return new APIResult(new { success = true, platform, distributiontype, data });
|
|
|
}
|
|
}
|
|
|
catch (Exception ex)
|
|
catch (Exception ex)
|
|
|
{
|
|
{
|