feat(identity): close free-task progress, level card, hot threshold
Finish remaining 1:1 parity gaps: free-task done/progress DTO with daily marks, user-center level/integral card UI, configurable forum hot recommend threshold, and task progress bars.
This commit is contained in:
1 parent
a7489798fe
commit
5949c7a503
9 files changed
+243
-8
No files matched your search
@@ -222,7 +222,14 @@ class AKSRT_Forum_Score_Service {
|
||||
}
|
||||
|
||||
private function maybe_reward_hot_topic(int $topic_id, float $score): void {
|
||||
$hot_threshold = 500.0;
|
||||
$config = $this->forum->get_config();
|
||||
$hot_threshold = (float) ($config['post_page']['hot_recommend_threshold']
|
||||
?? $config['credits']['hot_recommend_threshold']
|
||||
?? $config['other']['hot_topic_threshold']
|
||||
?? 500);
|
||||
if ($hot_threshold <= 0) {
|
||||
$hot_threshold = 500.0;
|
||||
}
|
||||
if ($score < $hot_threshold) {
|
||||
return;
|
||||
}
|
||||
@@ -239,7 +246,6 @@ class AKSRT_Forum_Score_Service {
|
||||
}
|
||||
do_action('aksrt_forum_topic_hot', $topic_id, (int) $author_id);
|
||||
update_post_meta($topic_id, '_aksrt_hot_rewarded', '1');
|
||||
$config = $this->forum->get_config();
|
||||
$amount = (int) ($config['credits']['posts_hot'] ?? 5);
|
||||
if ($amount > 0) {
|
||||
if (class_exists('AKSRT_Points_Free')) {
|
||||
|
||||
Reference in new issue
Block a user