简要描述:

  • 获取易宝图片新链接

请求域名:

  • http://xx.com

请求URL:

POST:plugin.yop-pay.api.pic.getUrl

参数:

参数名 是否必须 类型 说明
file file 图片流

返回示例:

正确时返回:

{
  "result": 1,
  "msg": "Upload success",
  "data": {
    "thumb": "http://staticres.yeepay.com/yop-file-upload-api/file/2019/1/7/10025325695-OPR_10025325695-9ce2ec815445482caa9e28beeb72e325.png",
    "local_thumb": "https://dev8.yunzshop.com/addons/yun_shop/attachment//storage/dea05273e17a947f060b5db00ee3c62c_12.png"
  }
}

错误时返回:

{
  "result": 0,
  "msg": {
    "error": "图片格式不正确!"
  },
  "data": []
}

返回参数说明:

参数名 类型 说明
result int 结果值
msg string 返回信息
thumb string 易宝图片新链接

备注: