人力管家FQA

帮助文档


3.2.1 企业微信对接配置

<p>[TOC]</p> <pre><code> 功能说明 人力管家支持移动端配置到企业微信中,用户可以直接通过企业微信工作台就可进入人力管家移动端。 企业微信配置,支持人力管家同步到企业微信组织架构与人员花名册,不支持企业微信同步到人力管家。 企业微信配置,支持读取企业微信打卡记录,包含企业微信移动端或者企业微信关联的考勤机。(人力管家最终是通过企业微信端获取打卡记录) 企业微信配置,支持人力管家消息(如待审批消息,生日祝福)同步到企业微信消息中心中。</code></pre> <h3>1. 企业微信配置</h3> <h4>1.1 登录企业微信后台</h4> <p>首先登录官方企业微信后台,需要具备增加应用的管理员,一般登录最高权限即可。网址:<a href="https://work.weixin.qq.com/" title="企业微信">企业微信</a></p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1595932680104.png)](http://qiniuyun.wangylblog.com/小书匠/1595932680104.png)</center> <p>然后扫码登录,需要使用管理员账号扫码</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1595932779228.png)](http://qiniuyun.wangylblog.com/小书匠/1595932779228.png)</center> <h4>1.2 创建人力管家自建应用</h4> <p>进入应用管理模块,点击创建应用</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1595933083855.png)](http://qiniuyun.wangylblog.com/小书匠/1595933083855.png)</center> <p>添加人力管家应用logo<a href="http://qiniuyun.wangylblog.com/小书匠/人力管家LOGO.jpg" title="可以点击此处下载(右键保存即可)">此处下载(右键保存即可)</a>,应用名称,应用介绍,课件范围,然后创建应用即可,如下图</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1595933723263.png)](http://qiniuyun.wangylblog.com/小书匠/1595933723263.png)</center> <h4>1.3 配置自建应用</h4> <p>创建应用后,如下图所示,其中需要记录下来<strong>Agentld与Secret</strong>两个字段,后续的配置中需要使用。</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1595934010607.png)](http://qiniuyun.wangylblog.com/小书匠/1595934010607.png)</center> <p>设置工作台应用主页</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1595934179648.png)](http://qiniuyun.wangylblog.com/小书匠/1595934179648.png)</center> <p>设置格式为:<a href="https://xxx.cxyhr.cn/acewill/qywx">https://xxx.cxyhr.cn/acewill/qywx</a> 域名更换成正式域名即可。</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1595934363879.png)](http://qiniuyun.wangylblog.com/小书匠/1595934363879.png)</center> <p>点击确定之后,勾选 在微信插件中始终进入主页。</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1595934466165.png)](http://qiniuyun.wangylblog.com/小书匠/1595934466165.png)</center> <p>然后设置 网页授权及JS-SDK 中的可信域名</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1595934555474.png)](http://qiniuyun.wangylblog.com/小书匠/1595934555474.png)</center> <p>可信域名设置格式为:yanshi.cxyhr.cn 就是管家的正式域名,不包含http:// 。</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1595934718445.png)](http://qiniuyun.wangylblog.com/小书匠/1595934718445.png)</center> <p>然后申请校验域名</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1595934772194.png)](http://qiniuyun.wangylblog.com/小书匠/1595934772194.png)</center> <p>下载文件,下载完成的文件需要上传到人力管家的服务器中; (如果您是实施同事,请直接联系运维提交工单,如果是您是用户,请直接联系对应的实施工程师,如果您是渠道同事,请联系渠道对应负责人协调)</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1595934803460.png)](http://qiniuyun.wangylblog.com/小书匠/1595934803460.png)</center> <p>如果文件回复已经上传到了服务器中,那么就勾选域名归属校验即可。(如果您配置到这里,那么文件下载了联系对应的人员,然后继续往下配置,等回复成功之后,可以在回到此处进行校验)</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1595935053939.png)](http://qiniuyun.wangylblog.com/小书匠/1595935053939.png)</center> <h4>1.4 人力管家关联</h4> <p>规则设置-配置信息</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1595935320654.png)](http://qiniuyun.wangylblog.com/小书匠/1595935320654.png)</center> <p>找到企业微信corpid、agentid、企业微信的应用密钥 把对应的值修改为企业微信中对应的值即可。</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1595935784918.png)](http://qiniuyun.wangylblog.com/小书匠/1595935784918.png)</center> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1595935968268.png)](http://qiniuyun.wangylblog.com/小书匠/1595935968268.png)</center> <p>企业微信中的【agentid】 对应 人力管家中的【qw_agentid】,描述【企业微信agentid】 上方已经讲过 企业微信中的【Secret】 对应 人力管家中的【qw_appsecret】,描述【企业微信的应用密钥】 上方已经讲过 企业微信中的【企业ID】 对应 人力管家中的【qw_corpid】,描述【企业微信的公司ID】 如下图所示</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1595936174560.png)](http://qiniuyun.wangylblog.com/小书匠/1595936174560.png)</center> <p>至此,企业微信已经搭建部署成功。 下方继续介绍同步打卡记录和同步通讯录的配置方式,以下内容可以选择配置也可以选择不配置。(配置了之后,都是人力管家同步到企业微信中,<strong>切记,以下同步会覆盖企业微信之前的记录,所以配置要注意,如果您不清楚,请联系对应的实施工程师</strong>)鬼斧神工</p> <h3>2.其他配置</h3> <h4>2.1 配置打卡记录同步人力管家</h4> <p>在也企业微信中找到打卡模块 应用管理-应用-打卡</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1596021692317.png)](http://qiniuyun.wangylblog.com/小书匠/1596021692317.png)</center> <p>然后开启打卡,并且记录下来对应的<strong>Secret</strong></p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1596020347431.png)](http://qiniuyun.wangylblog.com/小书匠/1596020347431.png)</center> <p>打卡人力管家的配置目录,把下图所示的内容配置为刚才的Secret即可。 规则设置-配置信息</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1596020628190.png)](http://qiniuyun.wangylblog.com/小书匠/1596020628190.png)</center> <h4>2.2 配置组织架构同步</h4> <p>首先在企业微信中找到通讯录同步模块 管理工具-通讯录同步</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1596020765408.png)](http://qiniuyun.wangylblog.com/小书匠/1596020765408.png)</center> <p>点击进入通讯录同步,点击开启API接口同步</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1596020838767.png)](http://qiniuyun.wangylblog.com/小书匠/1596020838767.png)</center> <p>然后权限设置为API编辑通讯录,并且记录<strong>Secret</strong></p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1596021037915.png)](http://qiniuyun.wangylblog.com/小书匠/1596021037915.png)</center> <p>最后打卡人力管家配置信息模块中进行密钥即可 如下图所示,配置成刚刚记录的Secret。</p> <center>[![](http://qiniuyun.wangylblog.com/小书匠/1596021142762.png)](http://qiniuyun.wangylblog.com/小书匠/1596021142762.png)</center> <p>最后如下图所示,需要把对应的同步开启,才算生效 <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/22df57fbe0306036308d47662146c562" alt="" /></p> <hr /> <table> <thead> <tr> <th style="text-align: center;">修订日期</th> <th style="text-align: center;">修订版本</th> <th style="text-align: center;">修订内容</th> <th style="text-align: center;">更新人员</th> <th style="text-align: center;">注释</th> </tr> </thead> <tbody> <tr> <td style="text-align: center;">2020-7-29</td> <td style="text-align: center;">v1.0</td> <td style="text-align: center;">初版</td> <td style="text-align: center;">王小布</td> <td style="text-align: center;">是努力还是放弃,这时就轮到他们选择了。</td> </tr> <tr> <td style="text-align: center;">2021-1-25</td> <td style="text-align: center;">v1.1</td> <td style="text-align: center;">优化了1.4配置的配置项</td> <td style="text-align: center;">王小布</td> <td style="text-align: center;">原项目描述不清楚</td> </tr> <tr> <td style="text-align: center;">2021-4-14</td> <td style="text-align: center;">v1.2</td> <td style="text-align: center;">优化2.2组织配置,增加最后一步</td> <td style="text-align: center;">王小布</td> <td style="text-align: center;">原项目少配置项</td> </tr> </tbody> </table>

页面列表

ITEM_HTML