fly 4 년 전
부모
커밋
45e83144f7
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/Services/LandingPage/LandingPageLinkService.php

+ 2 - 1
src/Services/LandingPage/LandingPageLinkService.php

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