|
|
@@ -77,9 +77,9 @@ class StatVisitClass extends BaseClass
|
|
|
$year = date('Y', $timestamp);
|
|
|
$month = date('m', $timestamp);
|
|
|
}
|
|
|
- $stat = self::getByCondition(['sjId' => $sjId, 'shopId' => $shopId, 'time' => $time], true);
|
|
|
+ $stat = StatVisitMonthClass::getByCondition(['sjId' => $sjId, 'shopId' => $shopId, 'time' => $time], true);
|
|
|
if (empty($stat)) {
|
|
|
- $stat = self::add(['shopId' => $shopId, 'sjId' => $sjId, 'time' => $time, 'year' => $year, 'month' => $month, 'createTime' => date("Y-m-d H:i:s")], true);
|
|
|
+ $stat = StatVisitMonthClass::add(['shopId' => $shopId, 'sjId' => $sjId, 'time' => $time, 'year' => $year, 'month' => $month, 'createTime' => date("Y-m-d H:i:s")], true);
|
|
|
}
|
|
|
$currentNum = bcadd($stat->riseNum, $visitNum);
|
|
|
$stat->riseNum = $currentNum;
|