Skip to content

Commit

Permalink
feat: 审核异常打印错误信息
Browse files Browse the repository at this point in the history
  • Loading branch information
phk422 committed Jan 16, 2024
1 parent 7798ab4 commit 00da657
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/weixin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,10 @@ export async function toRelease() {
const statusText = await page.evaluate((el) => {
return el?.innerHTML
}, statusEle)
if (statusText !== '审核通过待发布')
if (statusText !== '审核通过待发布') {
spinner.fail(statusText)
throw new Error(statusText)
}
const submitBtn = await page.waitForSelector('#js_container_box > div.col_main > div > div:nth-child(2) > div.main_bd > span > div.code_mod.mod_default_box.code_version_test > div.mod_default_bd.default_box.test_version > div > div > div.code_version_log_ft > div > div.weui-desktop-popover__wrp > span > div > button')
// 点击提交审核
await submitBtn?.click()
Expand Down

0 comments on commit 00da657

Please sign in to comment.