Use tp5 combined with Mini Program's wx.request to obtain background data

use tp5 combined with Mini Program"s wx.request to obtain background data, and always return status code 500, the background code is sure to be fine. All the methods of searching on the Internet have been tried, but none of them have been solved.
does anyone have any other solutions, online, etc.

Php
Feb.28,2021
I have encountered the problem of

.
there was no problem with my local operation at that time, and the server could return it, but the status code was 500
my local environment: win10+iis, server environment centos6+lnmp
finally found that the reason for the problem was that centos wanted to write permissions to the thinkphp5 directory, and the problem was solved.

Menu