WeChat Mini Programs's success in uploading pictures is the returned data. Why is it data that I can't understand?

as shown in the picture: WeChat Mini Programs uploads pictures to the background interface

returned data:

clipboard.png
console.log(e):

clipboard.png
what"s going on here? why isn"t the data I returned? Daniel, give me some advice.

Feb.27,2021

No reason, just because you don't know what the JSON format is.


because the value passed in the success callback is not directly your returned result. For more information, please see official document


data contains the returned data, that is, e.data. State:1 stands for success
in addition, it is not good for you to expose the interface on the forum without coding.

Menu