接口:获取审批申请详情
接口地址: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返回相等
还有一个问题,关于这块的解释非常不清楚,怎么定义出来开始时间结束时间的,具体怎么计算的?详细的说明是不是应该在文档体现一下
你好,这里的逻辑是这样的请假只有上午下午的计时情况,上午为当天的0点时间戳,下午为当天12点时间戳,请假一个上午 就是上午-上午 即俩个0点时间戳
是呀。 这里不知道怎么添不能给个完整实便。 各控件可以测试的数据。 大家好理。
'content' => '{"errcode":40058,"errmsg":"invalid Request Parameter:day_items duration invaild, duration:28800"}',
不知道啥意思。 愁人呀。
{ "creator_userid": "ChenXingJun", "template_id": "3WMViPu5dErnMTkNoc12PnAx7vULY5Md9rTRM2VX", "use_template_approver": 1, "notify_type": 1, "apply_data": { "contents": [ { "control": "Vacation", "id": "vacation-1563793073898", "title": [ { "text": "请假类型", "lang": "zh_CN" }, { "text": "Leave Type", "lang": "en" } ], "value": { "tips": [], "members": [], "departments": [], "files": [], "children": [], "stat_field": [], "vacation": { "selector": { "type": "single", "options": [ { "key": "1", "value": [ { "text": "年假", "lang": "zh_CN" } ] } ] }, "attendance": { "date_range": { "type": "halfday", "new_begin": 1731772800, "new_end": 1731816000, "new_duration": 86400 }, "type": 1, "slice_info": { "day_items": [ { "daytime": 1731772800, "time_sections": [], "duration": 28800 } ], "duration": 28800 } } }, "sum_field": [], "related_approval": [], "students": [], "classes": [] } }, { "control": "Textarea", "id": "item-1497581399901", "title": [ { "text": "请假事由", "lang": "zh_CN" }, { "text": "Leave Reason", "lang": "en" } ], "value": { "text": "你猜猜看EAGLE", "tips": [], "members": [], "departments": [], "files": [], "children": [], "stat_field": [], "sum_field": [], "related_approval": [], "students": [], "classes": [] } }, { "control": "File", "id": "item-1497581426169", "title": [ { "text": "说明附件", "lang": "zh_CN" }, { "text": "Attachment", "lang": "en" } ], "value": { "tips": [], "members": [], "departments": [], "files": [], "children": [], "stat_field": [], "sum_field": [], "related_approval": [], "students": [], "classes": [] } } ] }, "summary_list": [ { "summary_info": [ { "text": "请假类型:年假", "lang": "zh_CN" } ] }, { "summary_info": [ { "text": "开始时间:2024/11/17 上午", "lang": "zh_CN" } ] }, { "summary_info": [ { "text": "结束时间:2024/11/17 下午", "lang": "zh_CN" } ] } ] }