Small program button login ability

It will show when we click the button

Let’s first click Reject to see the returned result:

We can see that when we click Reject, we will find errorMsg in the detail 

Let's click Allow again to see:

There is a userInfo object when successful

OK, we modify our processing function

If it succeeds, we print a success message, if it fails, we fail a message!

————————————————————————————

The above is the logic of our login!

My stomach hurts a little bit, so look back and continue!

 

 

Guess you like

Origin blog.csdn.net/qq_15009739/article/details/111822846