简要描述:

  • 添加标签

请求域名:

  • http://xx.com

请求URL:

xx.com/business/{公众号id}/plugin/StaffCode/posterList

参数:

参数名 是否必须 类型 说明
search[uid] int 会员ID
search[lock_uid] int 锁客会员ID
search[code_name] string 活码名称
search[member_kwd] string 会员昵称/姓名/手机号
search[time_search] string 搜索时间字段,如搜索时间固定传created_at,否则不传
search[time_arr] arr 起始结束时间戳数组

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "成功",
	"data": {
		"current_page": 1,
		"data": [{
			"id": 1,
			"uniacid": 25,
			"business_id": 11,
			"poster_id": 0,
			"staff_id": 51,
			"uid": 164138,
			"code_id": 1,
			"poster": "https:\/\/dev15.yunzmall.com\/storage\/app\/public\/poster\/25\/staff_code_1.png?=ADbRm5",
			"poster_path": "\/data\/wwwroot\/dev15.yunzmall.com\/storage\/app\/public\/poster\/25\/staff_code_1.png",
			"created_at": "2026-03-11 12:06:35",
			"updated_at": "2026-03-11 12:06:35",
			"deleted_at": null,
			"has_one_member": {
				"uid": 164138,
				"nickname": "L-S-Ting",
				"avatar": "https:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/Z9RUmx1HgtSXOMr5yaFE4TwhJRZJ5ib2ooWNibibgqdH5vXo8vOwjlSnTy3tIu2DxLgXwrAC99M4KCmvSWkI6NcUw\/132",
				"avatar_image": "https:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/Z9RUmx1HgtSXOMr5yaFE4TwhJRZJ5ib2ooWNibibgqdH5vXo8vOwjlSnTy3tIu2DxLgXwrAC99M4KCmvSWkI6NcUw\/132",
				"username": "L-S-Ting"
			},
			"has_one_code": {
				"id": 1,
				"uniacid": 25,
				"business_id": 11,
				"staff_id": 51,
				"staff_userid": "XUJIAJIAN2XUJIAJIAN2X_1631087200",
				"poster_id": 82,
				"name": "testcode",
				"state": "staff_code_1",
				"config_id": "82a5a01e0bc42e6721b691247fb708ca",
				"code": "https:\/\/wework.qpic.cn\/wwpic3az\/409675_OIK3EEa4RpKOUbS_1773136253\/0",
				"status": 1,
				"source_staff_id": 46,
				"lock_uid": 163951,
				"created_at": "2026-03-10 17:50:52",
				"updated_at": "2026-03-10 17:50:53",
				"deleted_at": null,
				"has_one_lock_member": {
					"uid": 163951,
					"nickname": "夜色初明时",
					"avatar": "https:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/JA5cVN4azDzYZHvrXicDeDkV3cxiaYf2JqoPPy2dkuJiaR3gxkoOiaoXqEibPFWeMmAcRKpOwUL9sD0OdpNbSia5NsgQ\/132",
					"avatar_image": "https:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/JA5cVN4azDzYZHvrXicDeDkV3cxiaYf2JqoPPy2dkuJiaR3gxkoOiaoXqEibPFWeMmAcRKpOwUL9sD0OdpNbSia5NsgQ\/132",
					"username": "夜色初明时"
				}
			}
		}],
		"first_page_url": "https:\/\/dev15.yunzmall.com\/business\/25\/plugin\/StaffCode\/posterList?page=1",
		"from": 1,
		"last_page": 1,
		"last_page_url": "https:\/\/dev15.yunzmall.com\/business\/25\/plugin\/StaffCode\/posterList?page=1",
		"links": [{
				"url": null,
				"label": "« 上一页",
				"active": false
			},
			{
				"url": "https:\/\/dev15.yunzmall.com\/business\/25\/plugin\/StaffCode\/posterList?page=1",
				"label": "1",
				"active": true
			},
			{
				"url": null,
				"label": "下一页 »",
				"active": false
			}
		],
		"next_page_url": null,
		"path": "https:\/\/dev15.yunzmall.com\/business\/25\/plugin\/StaffCode\/posterList",
		"per_page": 15,
		"prev_page_url": null,
		"to": 1,
		"total": 1
	}
}

错误时返回:

  {
  }

返回参数说明:

参数名 类型 说明
名称 类型 说明
data.data[created_at] string 生成时间
data.data[has_one_code].name string 活码名称
data.data[has_one_member] object 生成会员
data.data[has_one_lock_member] object 锁客会员