No error was reported in the development of Mini Program, and no error was reported in the upload request.

problem description

when using uni-app to develop WeChat Mini Programs,
an api API failed to request data in the uploaded experience version. An error was reported.

the environmental background of the problems and what methods you have tried

legal domain name has been set, cache has been cleared, request header has been changed, but all of them are invalid.

related codes

Please paste the code text below (do not replace the code with pictures)
uni.request ({

)
            url: "https://www.apiopen.top/weatherApi?city="+key2.key2,
            method: "GET",
            data: {},
            success: res =>{
                console.log(key2.key2);
                console.log(res);
                },
            fail: () => {},
            complete: () => {}
        });

this code is requested normally in Mini Program developer tool, and there is no problem with the packaged app version



:
uni.request({



what result do you expect? What is the error message actually seen?

I"d like to know what the reason is

Jun.09,2022
Menu