no message

This commit is contained in:
kuaifan 2023-07-27 18:43:06 +08:00 committed by Pang
parent 569145196e
commit 201c0e086b
4 changed files with 8 additions and 4 deletions

View File

@ -14,8 +14,10 @@ class CreateDefaultRobot extends Migration
*/
public function up()
{
User::botGetOrCreate('ai-openai');
User::botGetOrCreate('ai-claude');
if (WebSocketDialog::count() > 0) {
User::botGetOrCreate('ai-openai');
User::botGetOrCreate('ai-claude');
}
}
/**

View File

@ -232,6 +232,8 @@ class WebSocketDialogsTableSeeder extends Seeder
$dialog->save();
}
}
User::botGetOrCreate('ai-openai');
User::botGetOrCreate('ai-claude');
$userids = User::whereBot(0)->whereNull('disable_at')->pluck('userid')->toArray();
WebSocketDialog::createGroup("全体成员 All members", $userids, 'all');

View File

@ -1299,7 +1299,7 @@
color: $primary-text-color;
background-color: #ffffff;
border: 1px solid #eeeeee;
box-shadow: 0 4px 8px 0 rgba($primary-text-color, 0.2);
box-shadow: 0 0 4px 0 rgba($primary-text-color, 0.2);
top: -48px;
width: 40px;
height: 40px;

@ -1 +1 @@
Subproject commit d47541cff5f8b3df62b0176802451b8858e5a7ce
Subproject commit beef15a591134255727755e635e72a7af9a0df0c