收藏
回答

小程序设置服务器域名返回成功但设置域名不全?

请求参数:

{

"action": "set",

"requestdomain": ["https:\/\/api.mall.meihao.com", "https:\/\/dev-api.mall.meihao.com"],

"wsrequestdomain": ["wss:\/\/dev-websocket.mall.meihao.com", "wss:\/\/websocket.mall.meihao.com"],

"uploaddomain": ["https:\/\/api.mall.meihao.com", "https:\/\/apis.map.qq.com", "https:\/\/dev-api.mall.meihao.com", "https:\/\/dev-img.mall.meihao.com", "https:\/\/img.mall.meihao.com", "https:\/\/thirdwx.qlogo.cn", "https:\/\/meihao-mall.oss-cn-guangzhou.aliyuncs.com"],

"downloaddomain": ["https:\/\/api.mall.meihao.com", "https:\/\/apis.map.qq.com", "https:\/\/dev-api.mall.meihao.com", "https:\/\/dev-img.mall.meihao.com", "https:\/\/img.mall.meihao.com", "https:\/\/thirdwx.qlogo.cn", "https:\/\/meihao-mall.oss-cn-guangzhou.aliyuncs.com"]

}

返回成功但uploaddomain和downloaddomain不完全成功:

{

"errcode": 0,

"errmsg": "ok",

"requestdomain": ["https:\/\/api.mall.meihao.com", "https:\/\/dev-api.mall.meihao.com"],

"wsrequestdomain": ["wss:\/\/dev-websocket.mall.meihao.com", "wss:\/\/websocket.mall.meihao.com"],

"uploaddomain": ["https:\/\/api.mall.meihao.com", "https:\/\/apis.map.qq.com", "https:\/\/dev-api.mall.meihao.com", "https:\/\/dev-img.mall.meihao.com", "https:\/\/img.mall.meihao.com"],

"downloaddomain": ["https:\/\/api.mall.meihao.com", "https:\/\/apis.map.qq.com", "https:\/\/dev-api.mall.meihao.com", "https:\/\/dev-img.mall.meihao.com", "https:\/\/img.mall.meihao.com"],

"invalid_requestdomain": [],

"invalid_wsrequestdomain": [],

"invalid_uploaddomain": ["https:\/\/thirdwx.qlogo.cn", "https:\/\/meihao-mall.oss-cn-guangzhou.aliyuncs.com"],

"invalid_downloaddomain": ["https:\/\/thirdwx.qlogo.cn", "https:\/\/meihao-mall.oss-cn-guangzhou.aliyuncs.com"]

}

回答关注问题邀请回答
收藏

2 个回答

  • James¹⁰¹⁴
    James¹⁰¹⁴
    2021-01-12

    猜你的域名没有配置在第三方平台的小程序服务器域名里面。

    2021-01-12
    有用
    回复 5
    • Jora-L
      Jora-L
      2021-01-12
      不是通过接口配置的么
      2021-01-12
      回复
    • James¹⁰¹⁴
      James¹⁰¹⁴
      2021-01-12回复Jora-L
      是通过接口配置没错,但是域名要先配在第三方平台上,才能调接口给小程序配置服务器域名。
      2021-01-12
      回复
    • Jora-L
      Jora-L
      2021-01-12
      哦哦,原来如此,受教了
      2021-01-12
      回复
    • James¹⁰¹⁴
      James¹⁰¹⁴
      2021-01-12回复Jora-L
      不客气,希望咱们能在社区这个大家庭继续保持交流!!!
      2021-01-12
      回复
    • 星星
      星星
      2021-11-14回复James¹⁰¹⁴
      果然是大神,每次设置都提示成功了,可查看域名就是没看到apis.map.qq.com。搞了半天原来是这原因
      2021-11-14
      回复
  • Jora-L
    Jora-L
    2021-01-12

    没人回答 ...

    2021-01-12
    有用
    回复
登录 后发表内容
问题标签