From 579856b40300febfc4ff3af0bef91649bb1d09b2 Mon Sep 17 00:00:00 2001 From: huangguancheng Date: Sat, 8 Feb 2025 20:57:44 +0800 Subject: [PATCH] =?UTF-8?q?google=20ads=20api=E9=99=8D=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/process/UpdateGoogleAdsTask.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/process/UpdateGoogleAdsTask.php b/app/process/UpdateGoogleAdsTask.php index 77b10f2..4e5b1b6 100644 --- a/app/process/UpdateGoogleAdsTask.php +++ b/app/process/UpdateGoogleAdsTask.php @@ -25,7 +25,7 @@ class UpdateGoogleAdsTask // 每15分钟执行一次 - new Crontab('10 */13 * * * *', function () { + new Crontab('10 15 */2 * * *', function () { $dayBeforeYesterdayStart = date('Y-m-d', strtotime('-2 day')); dump($dayBeforeYesterdayStart . '更新' . GoogleAdsDateDatas::event . '开始'); @@ -35,7 +35,7 @@ class UpdateGoogleAdsTask ); // 每15分钟执行一次 - new Crontab('20 */13 * * * *', function () { + new Crontab('20 14 */2 * * *', function () { $yesterdayStart = date('Y-m-d', strtotime('-1 day')); dump($yesterdayStart . '更新' . GoogleAdsDateDatas::event . '开始'); Event::emit(GoogleAdsDateDatas::event, ['date' => $yesterdayStart]); @@ -43,7 +43,7 @@ class UpdateGoogleAdsTask ); // 每15分钟执行一次 - new Crontab('30 */12 * * * *', function () { + new Crontab('30 13 */2 * * *', function () { //获取今天的 0 点的YYYY - MM - DD格式 $todayStart = date('Y-m-d', strtotime('0 day')); dump($todayStart . '更新' . GoogleAdsDateDatas::event . '开始'); @@ -51,7 +51,7 @@ class UpdateGoogleAdsTask } ); // 每15分钟执行一次 - new Crontab('15 */12 * * * *', function () { + new Crontab('15 12 */2 * * *', function () { dump(date('Y-m-d H:i:s') . '更新' . GoogleAdsAssetRelations::event . '开始'); Event::emit(GoogleAdsAssetRelations::event, []); @@ -59,7 +59,7 @@ class UpdateGoogleAdsTask ); // 每15分钟执行一次 - new Crontab('30 */12 * * * *', function () { + new Crontab('30 * */2 * * *', function () { dump(date('Y-m-d H:i:s') . '更新' . GoogleAdsGroups::event . '开始'); Event::emit(GoogleAdsGroups::event, []); @@ -69,7 +69,7 @@ class UpdateGoogleAdsTask ); // 每15分钟执行一次 - new Crontab('5 */11 * * * *', function () { + new Crontab('5 * */2 * * *', function () { dump(date('Y-m-d H:i:s') . '更新' . GoogleAdsAds::event . '开始'); Event::emit(GoogleAdsAds::event, []); } @@ -82,7 +82,7 @@ class UpdateGoogleAdsTask Event::emit(GoogleAdsCreatives::event, []); } ); - new Crontab('25 */14 * * * *', function () { + new Crontab('25 11 */2 * * *', function () { dump(date('Y-m-d H:i:s') . '更新' . GoogleAdsAssets::event . '开始'); Event::emit(GoogleAdsAssets::event, []); }