brief: because Mini Program"s project uses wepy"s framework, but you don"t quite understand that the role of this interceptor is to integrate all the interfaces? Or?
brief: because Mini Program"s project uses wepy"s framework, but you don"t quite understand that the role of this interceptor is to integrate all the interfaces? Or?
interceptor is where all request and response information is reprocessed. Here you can uniformly add the request header and judge the response status code to do some general processing, without having to set
for each request to understand AOP ideas, examples in life, for example, if you want to go to the commissary to buy a bottle of water, you have to go through the boss's inquiry, hey, young man, what do you want? you say you want to buy a bottle of water. Only after the boss verifies that you are a serious customer can you choose your own goods.-that's what I mean.-