「PRODUCTIVITY-TOOLS」- 飞书 | Fieshu | Lark | 即时通讯

组成

日志存储路径
~/.config/LarkShell/sdk_storage/log/feishu-xxxxxx.log

构建

安装

下载 | https://www.feishu.cn/download
dpkg -i xxx.deb
安装目录:/opt/bytedance/xxxx

https://flathub.org/apps/cn.feishu.Feishu
flatpak install flathub cn.feishu.Feishu

卸载

apt-get purge bytedance-feishu-stable

升级

# 05/07/2024 升级到 7.11.9 版本

应用

常用

自定义机器人发送通知:

curl -X POST "https://open.feishu.cn/open-apis/bot/v2/hook/{webhook}" \
    -H 'Content-Type: application/json' \
    -d '{"msg_type":"text","content":{"text":"Hello, world!"}}'

语法格式:Markdown – Developer Guides – Documentation – Feishu Open Platform

改进

当 Ubuntu 20.04 LTS 升级 Ubuntu 22.04 LTS 后,飞书无法正常启动

原因分析:

# strace /opt/bytedance/feishu/bytedance-feishu
...
getpid()                                = 33327
openat(AT_FDCWD, "/home/k4nz/.config/LarkShell/sdk_storage/log/apollo_2023.0426.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = -1 ENOENT (No such file or directory)
gettid()                                = 33327
getpid()                                = 33327
openat(AT_FDCWD, "/home/k4nz/.config/LarkShell/sdk_storage/log/apollo_2023.0426.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = -1 ENOENT (No such file or directory)
exit_group(0)                           = ?
+++ exited with 0 +++

// 根据如上提示,我们猜测是配置文件的问题;

解决方案:我们尝试删除 ~/.config/LarkShell 目录,然后问题得以解决;

参考

Lark (software) – Wikipedia