Git Product home page Git Product logo

wework-msgaudit's Introduction

wework-msgaudit

企业微信-会话内容存档
实时拉取企业微信聊天记录java版SDK

功能

  • 多企业
  • 音频转码
  • 自动分表

安装

mvn install

配置

  • mysql配置
src/main/java/com/php127/wework/DataSource.java
  • 把动态库拷贝到系统
cp ./lib/libWeWorkFinanceSdk_Java.so /usr/lib/libWeWorkFinanceSdk_Java.so

数据表

  • 运行后由程序自动创建数据表
  • corplist 企业表 运行第一次后,再手工添加一个企业配置,注意:添加服务器白名单
  • message_xxxx 聊天记录分表 每个企业一个表

编译

mvn compile

打包

mvn package

运行

java -jar target/wework-msgaudit-1.0.jar

进程守护

使用 supervisord 进行守护 请见 supervisord 文件夹
work.ini 为java进程守护 运行目录与日志等请自行修改
resert.ini 为重启进程守护 配合 /bin/restart.sh 进行使用
/bin/restart.sh 是一个redis队列,当有企业变动时,推送队列到redis来重启进程

使用docker运行

  • Dockerfile
FROM daocloud.io/library/java
COPY ./ /app/wework
COPY ./lib/libWeWorkFinanceSdk_Java.so /usr/lib/libWeWorkFinanceSdk_Java.so
WORKDIR /app/wework
RUN java -jar target/wework-msgaudit-1.0.jar
  • docker.sh
docker build -t wework .
docker run -it --rm --net=net --name wework-msgaudit wework
docker rmi wework

常见问题

  • 无法运行?

    请注意运行环境,必需在linux下,并且将 libWeWorkFinanceSdk_Java.so 拷贝到 /usr/lib/

  • 可以运行无法拉取?

    是否将服务器ip添加到企业微信后台的白名单中,密钥等是否配置正确

参与贡献

  1. fork 当前库到你的名下
  2. 在你的本地修改完成审阅过后提交到你的仓库
  3. 提交 PR 并描述你的修改,等待合并

License

MIT license

wework-msgaudit's People

Contributors

aa24615 avatar chenye1997 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.