简要描述:

-加入直播间

请求域名:

  • http://xx.com

请求URL:

plugin.share-room.frontend.controllers.index.room-detail

请求参数说明:

参数名 类型 是否必需 说明
room_id int 直播间ID

返回示例:

正确时返回:

{
	result: 1,
	msg: "success",
	data: {
		id: 1,
		title: "测试直播间",
		image_url: "测试图片地址",
		start_at: "2023-06-29T06:15:47.000000Z",
		nickname: "沈芷莹",
		total_num: 0,
		status: 0,
		play_url: {
			play_url_rtmp: "rtmp://zb.yunzmall.com/live/28-supply",
			play_url_flv: "https://zb.yunzmall.com/live/28-supply.flv",
			play_url_hls: "https://zb.yunzmall.com/live/28-supply.hls"
		},
		goods_num: 0,
		diy_menu: [
			{
				title: "菜单二",
				thumb: "image/cc2637953e0accd5465fffef8cec404c.gif",
				url: "https://dev8.yunzmall.com/addons/yun_shop/?menu#/o2o/home?i=1",
				mini_url: "/packageD/member/footprint/footprint",
				thumb_src: "https://dev8.yunzmall.com/static/upload/image/cc2637953e0accd5465fffef8cec404c.gif"
			},
			{
				title: "菜单1",
				thumb: "images/1/2023/07/fed372efe48dc0defecaedce2760bfcb.jpg",
				url: "https://dev8.yunzmall.com/addons/yun_shop/?menu#/o2o/home?i=1",
				mini_url: "/packageC/o2o/o2oHome/o2oHome",
				thumb_src: "https://dev8.yunzmall.com/static/upload/images/1/2023/07/fed372efe48dc0defecaedce2760bfcb.jpg"
			}
		],
		goods: [
			{
				id: 205138,
				title: "测试1",
				thumb: "https://supply-chain-yunzmall.oss-cn-beijing.aliyuncs.com/2023512/1683860467QQ截图20211007105506.png",
				price: "100.00",
				has_option: 1,
				stock: 100,
				min_price: "100.00",
				max_price: "100.00",
				sort: 1,
				vip_price: 100,
				next_level_price: 100,
				has_many_options: [
					{
						id: 1654110,
						uniacid: 1,
						goods_id: 205138,
						title: "默认",
						thumb: "",
						product_price: "100.00",
						market_price: "100.00",
						cost_price: "101.00",
						stock: 0,
						weight: "100.00",
						display_order: 0,
						specs: "14755948",
						skuId: "",
						goods_sn: "",
						product_sn: "",
						virtual: 0,
						red_price: "",
						volume: null
					}
				],
				has_many_goods_discount: [ ]
			},
			{
				id: 205139,
				title: "测试2",
				thumb: "https://supply-chain-yunzmall.oss-cn-beijing.aliyuncs.com/2023512/1683860467QQ截图20211007105506.png",
				price: "100.00",
				has_option: 1,
				stock: 0,
				min_price: "100.00",
				max_price: "100.00",
				sort: 2,
				vip_price: 100,
				next_level_price: 100,
				has_many_options: [
					{
						id: 1654111,
						uniacid: 1,
						goods_id: 205139,
						title: "默认",
						thumb: "",
						product_price: "100.00",
						market_price: "100.00",
						cost_price: "101.00",
						stock: 0,
						weight: "0.00",
						display_order: 0,
						specs: "14755949",
						skuId: "",
						goods_sn: "",
						product_sn: "",
						virtual: 0,
						red_price: "",
						volume: null
					}
				],
				has_many_goods_discount: [ ]
			}
		],
		userSig: "eJw1zE0LgkAUheH-MuvQO453mBFa1CYqjT5cqLiRnOJSxqBiQvTfM63leQ68LxaHJ6czNQuY5wCbjZtK82jpQiNzidz7P015K6ylkgXcBxBcK*TTY3pLtRkcET0AmLSl6mtSaQ1SgPhV6DqEj5vEpp1eLGXuJk*Tu-3hrlYRVk1UhOdtq*MMdnsM11ak-py9PxnnMIU_",
		userID: "165120",
		userNickname: "13*******66",
		userAvatar: "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2021/12/68a0a0cfdbaa5785ee764c1971887026.jpg",
		groupId: "10"
	}
}

错误时返回:

{
    "result": 0,
    "msg": "请登录",
    "data": []
}

返回参数说明:

参数名 类型 说明
title string 直播间标题
image_url string 直播间图片
start_at string 开播时间
nickname string 主播昵称
total_num string 累计观看人数
play_url obj 中台返回:播放地址
goods_num int 商品数量
status int 直播间状态:0等待直播1直播中2已结束
status_name string 直播间状态文字表示
diy_menu array 自定义悬浮菜单
goods array 带货商品信息
userSig string 中台返回:im用户登录密码UserSig
userID string 中台返回:im用户登录唯一标识
userNickname string 昵称
userAvatar string 头像
groupId string 中台返回:im创建群聊的群组ID
play_back_url string 直播回放视频地址
setting obj 设置信息
like_count int 点赞数量

diy_menu返回参数说明:

参数名 类型 说明
title string 菜单标题
thumb_src string 菜单图片
url string h5跳转链接
mini_url string 小程序跳转

goods返回参数说明:

参数名 类型 说明
title string 商品名
thumb string 商品图片
price float 现价
has_option int 是否开启规格:0否1是
min_price float 商品最低价
max_price float 商品最高价
vip_price float vip价
next_level_price float 下一等级vip价
has_many_options array 商品规格信息

setting返回参数说明:

参数名 类型 说明
is_open int 菜单标题
sdkappid string sdkappid
im_type string 实时观看人数im消息的ext唯一值(与im消息中ext相等的就是该平台的实时观看人数im消息)