You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
324 B
PHP

<?php
namespace Isekai\AIReview;
use JobQueueGroup;
use Title;
class Hooks {
public static function onModerationPending($fields, $modid){
//加入审核队列
$job = new AIReviewJob(Title::newFromText($fields['mod_title']), ['mod_id' => $modid]);
JobQueueGroup::singleton()->push($job);
}
}