no message

This commit is contained in:
kuaifan
2023-07-27 23:11:48 +08:00
committed by Pang
parent 569145196e
commit 201c0e086b
4 changed files with 8 additions and 4 deletions
@@ -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');
}
}
/**
@@ -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');
+1 -1
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;