|
@@ -43,13 +43,15 @@ class PushStats extends Command
|
|
|
$cachePv = PushCache::getPushyPv($pushId, $date);
|
|
|
$cacheUv = PushCache::getPushUv($pushId, $date);
|
|
|
|
|
|
- myLog('pushStats')->info('', compact('date', 'pushId', 'pv', 'uv', 'cachePv', 'cacheUv'));
|
|
|
-
|
|
|
- // 更新pv uv
|
|
|
- QappPushTask::updatePushTask($pushId, [
|
|
|
- 'pv' => $pv + $cachePv,
|
|
|
- 'uv' => $uv + $cacheUv,
|
|
|
- ]);
|
|
|
+ if(!empty($cachePv) || !empty($cacheUv)){
|
|
|
+ myLog('pushStats')->info('', compact('date', 'pushId', 'pv', 'uv', 'cachePv', 'cacheUv'));
|
|
|
+
|
|
|
+ // 更新pv uv
|
|
|
+ QappPushTask::updatePushTask($pushId, [
|
|
|
+ 'pv' => $pv + $cachePv,
|
|
|
+ 'uv' => $uv + $cacheUv,
|
|
|
+ ]);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
return true;
|