初始提交:人事共享服务中心钉钉登录功能
This commit is contained in:
33
start_dingtalk.sh
Normal file
33
start_dingtalk.sh
Normal file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "正在启动人事共享服务中心'码'上办..."
|
||||
|
||||
# 检查Python环境
|
||||
if ! command -v python3 &> /dev/null; then
|
||||
echo "错误: 未找到Python3,请先安装Python"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 安装依赖
|
||||
echo "检查依赖..."
|
||||
pip3 install -r requirements.txt --quiet
|
||||
|
||||
# 初始化数据库
|
||||
echo "初始化数据库..."
|
||||
python3 init_db.py
|
||||
|
||||
# 设置钉钉配置(请根据实际情况修改)
|
||||
export DINGTALK_APP_KEY="dingx1oxerkw6vfzwzsc"
|
||||
export DINGTALK_APP_SECRET="_Ap2DwtSm2nyuZdid8DwFdAc4rLWuXYCbSBTJrwuwbLdyFcPtNabrs4lmnBDdoz5"
|
||||
export DINGTALK_AGENT_ID="4583595778"
|
||||
export DINGTALK_CORP_ID="dingaac5c6bd7188ca3935c2f4657eb6378f"
|
||||
export DINGTALK_TARGET_URL="https://www.askill.top/requirement-collection"
|
||||
|
||||
# 启动服务
|
||||
echo "启动服务..."
|
||||
echo ""
|
||||
echo "========================================="
|
||||
echo "钉钉入口地址: http://your-domain/requirement-collection/dingtalk/"
|
||||
echo "需求收集地址: http://your-domain/requirement-collection/"
|
||||
echo "========================================="
|
||||
python3 run.py
|
||||
Reference in New Issue
Block a user