一:申请企业微信服务商平台 创建应用(需要上线的)
    (1)https://open.work.weixin.qq.com/
    image.png
    基本信息
    应用类型
    普通应用
    分类
    客户关系
    通讯录权限
    通讯录基本信息只读
    企业客户权限
    已开启
    成员敏感信息
    用户授权获取 头像、二维码

    使用配置
    应用主页
    https://open.weixin.qq.com/connect/oauth2/authorize?appid=应用ID&redirect_uri=https%3A%2F%2F前端域名%2Flogin&response_type=code&scope=snsapi_userinfo&state=authLogin#wechat_redirect

    注意链接中应用id和前端域名的替换
    应用id就是这个新建应用的id,前端域名是scrm.xxxx.xxx

    可信域名
    scrm.xxxx.xxx(scrm域名放在前面,顺序不要乱)
    hd.xxxx.xxx(后端域名)
    m.xxxx.xxx(web域名)
    安装完成回调域名
    hd.xxxx.xxx

    业务设置URL
    https://scrm.xxxx.xxx/login
    回调配置
    数据回调URL
    https://hd.xxxx.xxx/work/server-event/index/1
    指令回调URL
    https://hd.xxxx.xxx/work-receive/index/1

    image.png
    image.png

    (2)有文件会要求验证,把文件传到以下俩个文件夹里面
    cd /home/wwwroot/crm/server/crm/web
    cd /home/wwwroot/crm/dashboard/crm/dist
    (不会放的话这边运维人员可协助操作)

    (3)系统总后台 域名+/admin的这个总后台再系统设置服务商配置里面,填写企业微信服务商的相关信息并且保存
    image.png

    二:应用和模板上线

    源码配置企业微信服务商一键授权模式 - 图5

    三:服务商后台登录授权填写
    登录授权发起域名 scrm.xxxx.xxx hd.xxxx.xxx m.xxxx.xxx
    授权回调域名 scrm.xxxx.xxx hd.xxxx.xxx m.xxxx.xxx
    image.png

    四:企业微信服务商,服务商信息里面 ip白名单,把服务器ip填写进去
    image.png