this$axiosn--------postwebInviteUserActivityGetUserEarningsRecord-n----------userId-thisuserIdn--------n--------thenres-=-n----------if-typeof-resdata-!=-number-n------------if-resdatasubstr0-2-==-00-n--------------let-jsonStr-=-JSONparseresdatasubst
This code is making a POST request to a server endpoint '/web/InviteUserActivity/GetUserEarningsRecord' with an object containing the 'userId' property. The response is expected to be a JSON string.
If the response is not a number and its first two characters are '00', the code will parse the JSON string and assign it to the 'recordData' property.
If there is an error during the request, it will be caught and logged to the console.
原文地址: https://www.cveoy.top/t/topic/p0Z 著作权归作者所有。请勿转载和采集!