|
@@ -227,9 +227,10 @@ class LandingPageLinkService
|
|
public function setReportType(int $channel_id, string $type, int $molecule, int $eligible_count)
|
|
public function setReportType(int $channel_id, string $type, int $molecule, int $eligible_count)
|
|
{
|
|
{
|
|
if (in_array($type, LandingPageLinkService::REPORT_TYPE)) {
|
|
if (in_array($type, LandingPageLinkService::REPORT_TYPE)) {
|
|
|
|
+ $molecule = $molecule == 0 ? 100 : $molecule;
|
|
Redis::hset('channel:setting:' . $channel_id, 'tiktok_report_type', $type);
|
|
Redis::hset('channel:setting:' . $channel_id, 'tiktok_report_type', $type);
|
|
Redis::hDel('channel:setting:' . $channel_id, 'tiktok_report_percent');
|
|
Redis::hDel('channel:setting:' . $channel_id, 'tiktok_report_percent');
|
|
- Redis::hset('channel:setting:' . $channel_id, 'new_tiktok_report_percent', $molecule == 0 ? 100 : $molecule);
|
|
|
|
|
|
+ Redis::hset('channel:setting:' . $channel_id, 'new_tiktok_report_percent', $molecule);
|
|
Redis::hset('channel:setting:' . $channel_id, 'tiktok_report_eligible_count', $eligible_count);
|
|
Redis::hset('channel:setting:' . $channel_id, 'tiktok_report_eligible_count', $eligible_count);
|
|
$service = new Report;
|
|
$service = new Report;
|
|
$service->report('api/report/config', [
|
|
$service->report('api/report/config', [
|