mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
approval none send cancel ban msg too
This commit is contained in:
@@ -36,7 +36,12 @@ class TorrentOperationLog extends NexusModel
|
||||
public static function add(array $params)
|
||||
{
|
||||
$log = self::query()->create($params);
|
||||
if (!in_array($params['action_type'], [self::ACTION_TYPE_APPROVAL_ALLOW, self::ACTION_TYPE_APPROVAL_DENY])) {
|
||||
$notifyActionTypes = [
|
||||
self::ACTION_TYPE_APPROVAL_ALLOW,
|
||||
self::ACTION_TYPE_APPROVAL_DENY,
|
||||
self::ACTION_TYPE_APPROVAL_NONE,
|
||||
];
|
||||
if (!in_array($params['action_type'], $notifyActionTypes)) {
|
||||
do_log("actionType: {$params['action_type']}, do not notify");
|
||||
return $log;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user