...
|
...
|
@@ -392,7 +392,7 @@ class LivingController extends BaseController |
|
|
|
|
|
$dependency = new \yii\caching\DbDependency(['sql' => 'SELECT COUNT(*) FROM '.LiveComment::tableName($room_id)." WHERE room_id={$room_id} AND create_time>={$startTime} AND create_time<={$endTime}"]);
|
|
|
$this->cache->set($key, json_encode($ret), Yii::$app->params['defaultCacheExpire'], $dependency);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$this->renderJson(Yii::$app->params['success_code'],'',$ret);
|
|
|
}
|
...
|
...
|
|