- 企业微信获取审批数据详情,请假类型,new_begin和new_end返回的数据一致
接口:获取审批申请详情接口地址:https://qyapi.weixin.qq.com/cgi-bin/oa/getapprovaldetail?access_token=ACCESS_TOKEN 返回数据: "attendance": { "date_range": { "type": "halfday", "new_begin": 1632456000, "new_end": 1632456000, "new_duration": 43200 }, "type": 1, "slice_info": { "day_items": [ { "daytime": 1632412800, "time_sections": [], "duration": 16200 } ], "state": 1, "duration": 16200 } } 其中new_begin和new_end返回相等 还有一个问题,关于这块的解释非常不清楚,怎么定义出来开始时间结束时间的,具体怎么计算的?详细的说明是不是应该在文档体现一下
2021-11-04 - 企业微信表单组件数据解析很拉跨,是个缺陷
获取审批申请详情接口体验太差获取出来的审批数据,都是各种控件构成的,那么深的结构形式怎么用,后期结构如果变动,那是不是就没法用了,这块是不是该提供一个sdk来解析,真难受
2021-11-03 - 获取审批申请详情审批申请数据字段解析问题
获取审批申请详情的文档解释不清楚apply_data作为接收审批申请数据的字段 开发者如何快速的从控件中获取控件标题和值,这点没有说明吗?以前的接口(获取审批数据(旧):https://qyapi.weixin.qq.com/cgi-bin/corp/getapprovaldata?access_token=ACCESS_TOKEN)中,开发者可以通过解析comm很方便的获取,但是现在却要解析控件吗?根据控件的不同从不同的数据结构中取值,而且路径很深,这种体验是不是有待提升举个例子,这是申请数据字段: "apply_data": { "contents": [ { "control": "Vacation", "id": "vacation-1563793073898", "title": [ { "text": "请假类型", "lang": "zh_CN" } ], "value": { "tips": [], "members": [], "departments": [], "files": [], "children": [], "stat_field": [], "vacation": { "selector": { "type": "single", "options": [ { "key": "4", "value": [ { "text": "调休假", "lang": "zh_CN" } ] } ] }, "attendance": { "date_range": { "type": "halfday", "new_begin": 1633708800, "new_end": 1633752000, "new_duration": 86400 }, "type": 1, "slice_info": { "day_items": [ { "daytime": 1633708800, "time_sections": [], "duration": 27000 } ], "state": 1, "duration": 27000 } } }, "sum_field": [], "related_approval": [], "students": [], "classes": [] } }, { "control": "Textarea", "id": "item-1497581399901", "title": [ { "text": "请假事由(详细说明)", "lang": "zh_CN" } ], "value": { "text": "休息", "tips": [], "members": [], "departments": [], "files": [], "children": [], "stat_field": [], "sum_field": [], "related_approval": [], "students": [], "classes": [] } }, { "control": "File", "id": "item-1497581426169", "title": [ { "text": "说明附件", "lang": "zh_CN" } ], "value": { "tips": [], "members": [], "departments": [], "files": [], "children": [], "stat_field": [], "sum_field": [], "related_approval": [], "students": [], "classes": [] } }, { "control": "Tips", "id": "item-1540863017484", "title": [ { "text": "说明", "lang": "zh_CN" } ], "value": { "tips": [], "members": [], "departments": [], "files": [], "children": [], "stat_field": [], "sum_field": [], "related_approval": [], "students": [], "classes": [] } }, { "control": "Tips", "id": "item-1556244979686", "title": [ { "text": "说明", "lang": "zh_CN" } ], "value": { "tips": [], "members": [], "departments": [], "files": [], "children": [], "stat_field": [], "sum_field": [], "related_approval": [], "students": [], "classes": [] } }, { "control": "Tips", "id": "item-1556244996788", "title": [ { "text": "说明", "lang": "zh_CN" } ], "value": { "tips": [], "members": [], "departments": [], "files": [], "children": [], "stat_field": [], "sum_field": [], "related_approval": [], "students": [], "classes": [] } } ] } 这么复杂的结构深度,我们也需要去定义这么深的对象属性去解析吗,有朋友帮忙解释一下吗?还有别的方式吗?
2021-11-03 - 急求!微信服务号绑定法人一直提示:企业信息或法定代表人信息不一致?
微信公众号绑定法人信息一直提示 "你好,你提交的法定代表人信息验证失败。原因: "企业信息或法定代表人信息不一致",建议使用其他方式重新注册。点击重新注册" 导致我的服务号一直无法注册成功,请问怎么做呢? 原始ID:gh_f3b8f90a8840 @微信官方
2021-04-06