mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-09 18:27:56 +08:00
✨ BISON_OUTER_URL配置改进 (#405)
* 📝 修复文档中的错误链接 * ✨ bison_outer_url使用property包装 * 📝 通过vue动态生成BISON_OUTER_URL的配置建议 * 💄 auto fix by pre-commit hooks * 📝 优化文档视觉效果 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -28,12 +28,12 @@ async def test_command(app: App):
|
||||
to_me=True,
|
||||
)
|
||||
ctx.receive_event(bot, event_1)
|
||||
ctx.should_call_send(event_1, f"请访问: {plugin_config.bison_outer_url}auth/test_token", True)
|
||||
ctx.should_call_send(event_1, f"请访问: {plugin_config.outer_url}auth/test_token", True)
|
||||
ctx.should_finished()
|
||||
|
||||
event_2 = fake_private_message_event(message=Message("管理后台"), sender=fake_admin_user, to_me=True)
|
||||
ctx.receive_event(bot, event_2)
|
||||
ctx.should_call_send(event_2, f"请访问: {plugin_config.bison_outer_url}auth/test_token", True)
|
||||
ctx.should_call_send(event_2, f"请访问: {plugin_config.outer_url}auth/test_token", True)
|
||||
ctx.should_finished()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user