perf: 去掉未使用的引用

This commit is contained in:
weifashi 2024-01-08 01:25:44 +08:00
parent b78e4240cb
commit 7c4d537d67
2 changed files with 1 additions and 8 deletions

View File

@ -2,15 +2,8 @@
namespace App\Http\Controllers\Api;
use App\Models\User;
use App\Models\UserBot;
use App\Models\UserCheckinMac;
use App\Models\UserCheckinRecord;
use App\Models\WebSocketDialog;
use App\Models\WebSocketDialogMsg;
use App\Module\Base;
use Cache;
use Carbon\Carbon;
use Request;
/**

View File

@ -2090,7 +2090,7 @@ class UsersController extends AbstractController
->whereYear('web_socket_dialog_msgs.created_at', $year)
->groupBy('web_socket_dialog_msgs.dialog_id');
}, 'm', 'm.dialog_id', '=', 'd.id')
->leftJoin('web_socket_dialog_users as du', function ($query) use ($user) {
->leftJoin('web_socket_dialog_users as du', function ($query) {
$query->on('d.id', '=', 'du.dialog_id');
$query->where('d.type', 'user');
})