请在小程序平台的 设置->开发设置 中的服务器域名录入以下参数

request合法域名:https://{$host}

socket合法域名:wss://{$host}

uploadFile合法域名:https://{$host}

downloadFile合法域名:https://{$host}

 

请在小程序源码app.js配置上以下参数

url:{$baseUrl}