fly 4 年 前
コミット
0c02c5f5f0
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/Services/LandingPage/LandingPageLinkService.php

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

@@ -229,7 +229,7 @@ class LandingPageLinkService
         if (in_array($type, LandingPageLinkService::REPORT_TYPE)) {
             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);
+            Redis::hset('channel:setting:' . $channel_id, 'new_tiktok_report_percent', $molecule == 0 ? 100 : $molecule);
             Redis::hset('channel:setting:' . $channel_id, 'tiktok_report_eligible_count', $eligible_count);
             $service = new Report;
             $service->report('api/report/config', [