Skip to content

fix p.state is not json - #622

Merged
MrSwitch merged 3 commits into
MrSwitch:masterfrom
xiaotiandada:master
Jun 24, 2021
Merged

fix p.state is not json#622
MrSwitch merged 3 commits into
MrSwitch:masterfrom
xiaotiandada:master

Conversation

@xiaotiandada

@xiaotiandada xiaotiandada commented Feb 24, 2020

Copy link
Copy Markdown
Contributor

Error catch

Because the Wechat login (social software in mainland China) the bounce address url is:

{code: 00000, other: 'other', state: 'weixin'}

So an error is reported in JSON.parse (p.state)

 SyntaxError: Unexpected token w in JSON at position 0

@xiaotiandada

Copy link
Copy Markdown
Contributor Author

@MrSwitch review

@MrSwitch MrSwitch left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thankyou 👍

@MrSwitch
MrSwitch merged commit 2258a4e into MrSwitch:master Jun 24, 2021
MrSwitch pushed a commit that referenced this pull request Jun 24, 2021
MrSwitch added a commit that referenced this pull request Jun 24, 2021
github-actions Bot pushed a commit that referenced this pull request Jun 24, 2021
## [1.19.4](v1.19.3...v1.19.4) (2021-06-24)

### Bug Fixes

* **lint:** lint and publish [#622](#622) ([c3988b6](c3988b6))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.19.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants