简要描述:

  • 获取是否为供应商,返回申请协议

请求URL:

plugin.supplier.supplier.controllers.apply.supplier-apply.index

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "访问成功",
	-"data": {
		"is_open_region": null,
		"safe": null,
		"status": 1,
		"supplier_status": 1,
		"signature": "供应商申请!",
		"agreement": "",
		"is_open_group": "1",
		"is_open_category": "1",
		-"groups": [-{
			"id": 1,
			"uniacid": 5,
			"title": "分组4",
			"up_aptitude": 1,
			"created_at": "2021-05-27 15:07:43",
			"updated_at": "2021-06-04 16:31:03",
			"deleted_at": null
		}, -{
			"id": 3,
			"uniacid": 5,
			"title": "分组2",
			"up_aptitude": 0,
			"created_at": "2021-05-27 15:07:52",
			"updated_at": "2021-05-27 15:07:52",
			"deleted_at": null
		}],
		-"categorys": [-{
			"id": 2,
			"uniacid": 5,
			"title": "行业1",
			"created_at": "2021-06-02 17:53:29",
			"updated_at": "2021-06-02 17:53:29",
			"deleted_at": null
		}]
	}
}

错误时返回:

是供应商返回
{
	result: 1,
	msg: "失败",
	data: {
		status: -1
	}
}

返回参数说明:

参数名 类型 说明
is_open_region int 是否开启区域供应商管理
safe str 微擎后台注册账号密码规则
status int 是否可以申请供应商
supplier_status int 是否可以申请供应商
signature str 签名
agreement str 协议
is_open_group int 是否开启供应商分组
is_open_category int 是否开启行业
groups arr 供应商分组数组
categorys arr 行业数组
groups->up_aptitude int 是否必须上传营业执照

备注:

  • 更多返回错误代码请看首页的错误代码描述