CRMEB二次开发基础接口

CRMEB系统是基于ThinkPhp6.0+uniapp 开发的一套CRMEB新零售商城系统。上手简单,便于二开,源码下载直通车:

源码地址

基础接口

获取个人中心菜单

基本信息

Path: /api/menu/user

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ routine_my_menus object [] 非必须

item 类型: object

├─ id number 必须
├─ name string 必须
├─ pic string 必须
├─ url string 必须
├─ routine_my_banner string [] 非必须

item 类型: string

├─ 非必须
├─ routine_spread_banner string [] 非必须

item 类型: string

├─ 非必须

图片上传

基本信息

Path: /api/upload/image

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json

Body

名称 类型 是否必须 默认值 备注 其他信息
filename string 必须 文件名称
dir string 非必须 文件路径 默认(store/comment)

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ name string 非必须
├─ url string 非必须

获取登录授权logo

基本信息

Path: /api/wechat/get_logo

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须 请求状态
msg string 非必须 提示语
data object 非必须 返回数据
├─ logo_url string 非必须 授权logo

获取网站基础配置

基本信息

Path: /api/site_config

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
data object 非必须
├─ record_No string 非必须 备案信息

获取配置是否强制绑定手机号

基本信息

Path: /api/v2/bind_status

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ status boolean 非必须

门店自提开启状态

基本信息

Path: /api/v2/diy/get_store_status

Method: GET

接口描述:

请求参数

公众号支付回调

基本信息

Path: /api/wechat/notify

Method: GET

接口描述:

请求参数

小程序支付回调

基本信息

Path: /api/routine/notify

Method: GET

接口描述:

请求参数

支付回调

基本信息

Path: /api/pay/notify/:type

Method: GET

接口描述:

请求参数

路径参数

参数名称 示例 备注
type alipay wechat tourine 类型

图片验证码

基本信息

Path: /api/sms_captcha

Method: GET

接口描述:

请求参数

获取发短信的code

基本信息

Path: /api/verify_code

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ key string 非必须 发短信key
├─ expire_time string 非必须 过期时间

验证码发送

基本信息

Path: /api/register/verify

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json

Body

名称 类型 是否必须 默认值 备注 其他信息
phone string 必须 手机号
type string 必须 发送验证码类型|register=注册,login=登录,mobile=手机号登录,reset=修改密码

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 必须
msg string 必须

手机号注册

基本信息

Path: /api/register

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json

Body

名称 类型 是否必须 默认值 备注 其他信息
account string 必须 手机号/账号
captcha string 必须 验证码
password string 必须 密码
spread string 必须 推广编号

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 必须
msg string 必须

手机号验证码登录

基本信息

Path: /api/login/mobile

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json

Body

名称 类型 是否必须 默认值 备注 其他信息
phone string 必须 手机号
captcha string 必须 短信验证码
spread string 必须 推广员编号 默认0

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 必须
msg string 必须
data object 非必须
├─ token string 非必须 用户登录密钥
├─ expires_time string 非必须 用户登录密钥到期时间

账号密码登陆

基本信息

Path: /api/login

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

Body

参数名称 参数类型 是否必须 示例 备注
account text 账号
password text 密码

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ token string 非必须
├─ expires_time number 非必须

手机号修改密码

基本信息

Path: /api/register/reset

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json

Body

名称 类型 是否必须 默认值 备注 其他信息
account string 必须 手机号/账号
captcha string 必须 验证码
password string 必须 新密码

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 必须
msg string 必须

绑定手机号

基本信息

Path: /api/binding

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

Body

参数名称 参数类型 是否必须 示例 备注
phone text 手机号码
captcha text 验证码
key text 授权用户信息保存key

记录用户分享

基本信息

Path: /api/user/share

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须 状态
msg string 非必须 提示语

分享配置

基本信息

Path: /api/share

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ data object 非必须
├─ img string 非必须
├─ title string 非必须
├─ synopsis string 非必须

获取图片base64

基本信息

Path: /api/image_base64

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

Body

参数名称 参数类型 是否必须 示例 备注
image text 图片路径
code text 二维码路径

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ code string 非必须
├─ image string 非必须

海报二维码

基本信息

Path: /api/wechat/follow

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ path string 非必须 路径

优惠券列表_copy(已废弃)

基本信息

Path: /api/coupons_1586329598967

Method: GET

接口描述:

请求参数

Query

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值