feat(identity): tip QR upload, metrics engine, comment moderate caps

Close identity 1:1 gaps after p1: user-center weixin/alipay tip QR
upload+save, AKSRT_User_Metrics counters for medal get_type and level
XP bridges, forum/revenue/signin hooks, comment moderate via user_caps,
and clearer free-task deep links/status CTAs.
This commit is contained in:
kate522 committed 2026-07-17 01:52:35 +08:00
1 parent 4e3eb0414d
commit 487681a6c4
18 files changed
+854 -36

No files matched your search

@@ -309,6 +309,7 @@ class AKSRT_Forum_Comment_Service {
update_comment_meta($comment_id, '_aksrt_adopted', '1');
update_post_meta($topic_id, '_aksrt_adopted_comment', $comment_id);
do_action('aksrt_forum_reply_adopted', $topic_id, $comment_id, (int) $comment->user_id);
update_post_meta($topic_id, '_aksrt_question_status', 1); // QUESTION_SOLVED
$adoptee_id = (int) $comment->user_id;
@@ -507,6 +508,8 @@ class AKSRT_Forum_Comment_Service {
}
update_comment_meta($comment_id, '_aksrt_is_hot', '1');
$hot_author = (int) (get_comment($comment_id)->user_id ?? 0);
do_action('aksrt_forum_comment_hot', $comment_id, $hot_author);
// Credit the comment author (free-task day cap).
$author_id = (int) $comment->user_id;
@@ -121,6 +121,7 @@ class AKSRT_Forum_Score_Service {
$total = (int) get_post_meta($topic_id, '_aksrt_score', true);
$total += $amount;
update_post_meta($topic_id, '_aksrt_score', $total);
do_action('aksrt_forum_topic_scored', $topic_id, (int) $author_id, (float) $amount);
$reputation = (int) get_user_meta($author_id, 'aksrt_reputation', true);
$reputation += $amount;
@@ -236,6 +237,7 @@ class AKSRT_Forum_Score_Service {
if ($author_id <= 0) {
return;
}
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);