change detail of approval status

This commit is contained in:
zhl 2023-04-07 15:30:11 +08:00
parent 5475acdf80
commit 960c4d5f3a

View File

@ -98,8 +98,8 @@ export class WechatWorkService {
throw new Error('approval detail error, code: ' + detail.errcode + ' errmsg: ' + detail.errmsg)
}
const { info } = detail
if (info.status !== TaskStatus.PASS) {
throw new Error('approval status error, status: ' + info.status)
if (info.sp_status !== TaskStatus.PASS) {
throw new Error('approval status error, status: ' + info.sp_status)
}
const { apply_data, applyer } = info
const { contents } = apply_data