图形验证码

简要描述
  • 获取一个图形验证码
请求url
  • https://www.商城域名.com/index.php?s=/api/captcha/image
请求方式
  • GET
是否需授权登录
请求header
参数名 类型 是否必须 示例值 说明
storeId int 必填 10001 商城ID
platform string 必填 H5 当前请求的客户端(APP、小程序、H5等)
Access-Token string 选填 - 当前登录用户的 Token
返回示例
{
  "status": 200,
  "message": "success",
  "data": {
    "base64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANAAAABBCAMAAACXQNqgAAAAclBMVEXz+/4OBhGX3sLXl8bIwa3MzaWdwsHFv72vqsyjzZvZrt7T16VjYWlHQ0ydn6WAgIcqJC5AMERzWnfW3OCMb5G5vcKmhKppYmdBV1N0qJUnGCeup6ckHSaXkJI7NDxSS1GGgZ1ybIU2Lz8iGiialbRKQ1c6Ck8dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAFmElEQVRogd2bDbfbJgyGcWLfpKm/Nsa+2rXd3fb//+IQwjbYksAxvnfde3pychNieEASEnaVolXXzBen6AV0ZgdNU7vXM/sI5GDOIGpA+GZ5fTOVJ3IA8FK/B9BJPKD6HYDO8KFp/DUA2Zf/zwr598336EO38I/ZhxTS5AB9sCowDlB5oCXKbXW/kx8DzXGigmH7lm6CooGQpQRRqaCQCXR32n7+wavIWArodiuyQvu7feZXkj6qj+7fYZNDor1YJwDNREeBFGFxehj7I6N7QjuAXDv7wgGtpYeuqqpOarLD0HO1Z4WAxr4AUBqqBxqrUWx1JlBWWyc6zIUyLdJUrZFavS3Q5aJcitCEbSe1XSc5B/KITdQwVvrtgZrLZSEKWll7apehVeFfoN5+MmixY+1+VB5IELBYqiWPC4BGO+DpfbvhUcp+JPO4Oan0fxGI4oHRpuK1sb/75VYwzsGmIe+DAKTo4q6aBwwTPWy+7wnItbpUCNwnTI5TQA1TrE5Ajx/sux+33+uMwRpyKp5VVnK8inKLtAfSsD4/PYgWo3Mi0/c9H7hHT13E7nKBaAGQHageOR7wrM5vrewy9DgtQHOcSAZ6WKkkkOP5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ARFloIzxxdqhLKrr74rsEkGJOsSyLtfPiRNBX4EOTfHJ0YI0wbMhAJ5gcdjVHuVne4g64kY+DeGeI9KEG6pvCCxT0tPEheX0uXvy1Z6IHf3Ba3OSCA82nolwGkBN1cwNN7g2fDt4CwYLECBKQSgDRJuds/6T/fLH2IRh9bGQiD3WnKhDztO7L2UQxT8wg8wSi7qe9B1CsGWhapWwe2uTox4/fAeji36Z5/gVzIzbHk+CdjgAAAABJRU5ErkJggg==",
    "key": "$2y$10$wBgTCvTRcF/3wIKYjcQee.h4cj3VbhWIpNTVRBxA2HIjsAVdIb2qu",
    "md5": "8acc2783219edba1708213eeb946e756"
  }
}
返回参数
参数名 类型 示例值 说明
status int 200 请求状态(200:请求成功;500:请求错误/失败)
message string success 请求结果的信息,默认为 success
data object - 返回的业务数据
data 参数
参数名 类型 示例值 说明
base64 string - 图形验证码(base64格式)
key string - 验证码key
md5 string - 验证码md5