fly 4 năm trước cách đây
mục cha
commit
45e83144f7
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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', [