@@@待完善@@@

请求域名:

  • http://test.yunzshop.com

请求URL:

GET/plugin.answer-reward.admin.subject.edit

请求参数说明:

参数名 类型 说明
data[title] string 标题
data[uid_reward_value] int 奖励会员积分
data[parent_reward_value] int 奖励会员上级积分
data[answer][0][content] string 答案内容
data[answer][0][answer] int 是否正确答案 : 0 错误 1 正确
data[video_id][0] int 视频id
id int 题目id (添加不用传,修改需要)

返回示例:

错误时返回:

{
    "result": 0,
    "msg": "储存失败",
    "data": []
}

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": "储存成功"
}
{
	"result": 1,
	"msg": "ok",
	"data": {
		"id": 1,
		"uniacid": 2,
		"title": "题dssds目",
		"uid_reward_value": "10.00",
		"uid_reward_ratio": null,
		"parent_reward_value": "20.00",
		"parent_reward_ratio": null,
		"created_at": "2020-10-20 13:35:54",
		"updated_at": "2020-10-20 15:55:44",
		"deleted_at": null,
		"has_many_video_subject": [{
				"id": 2,
				"uniacid": 2,
				"video_id": 1,
				"subject_id": 1,
				"created_at": "2020-10-20 15:55:44",
				"updated_at": "2020-10-20 15:55:44",
				"deleted_at": null,
				"has_one_video": {
					"id": 1,
					"uniacid": 2,
					"uid": 194,
					"goods_id": 16,
					"title": "测试一下看看",
					"cover": "https://dev5.yunzmall.com/attachment/image/d5224bf6eab650c7c7ecafafd8c504b6.png",
					"video": "https://dev5.yunzmall.com/addons/yun_shop/static/upload/audios/0/2019/09/3f3bd7ba3a0ef32524c044d5f9341435.MOV",
					"share_num": 1,
					"like_num": 0,
					"status": 1,
					"order_price": "0.00",
					"amount_total": "0.00",
					"created_at": "2019-09-18 16:46:49",
					"updated_at": "2019-10-11 11:48:05",
					"deleted_at": null,
					"file_name": null,
					"video_src": "http://www.wq.com/addons/yun_shop/static/upload/audios/0/2019/09/3f3bd7ba3a0ef32524c044d5f9341435.MOV"
				}
			},
			{
				"id": 3,
				"uniacid": 2,
				"video_id": 8,
				"subject_id": 1,
				"created_at": "2020-10-20 15:55:44",
				"updated_at": "2020-10-20 15:55:44",
				"deleted_at": null,
				"has_one_video": null
			},
			{
				"id": 4,
				"uniacid": 2,
				"video_id": 9,
				"subject_id": 1,
				"created_at": "2020-10-20 15:55:44",
				"updated_at": "2020-10-20 15:55:44",
				"deleted_at": null,
				"has_one_video": null
			}
		],
		"has_many_answer": [{
				"id": 14,
				"uniacid": 2,
				"subject_id": 1,
				"content": "不sdfsdfd好",
				"answer": 1,
				"created_at": "2020-10-20 15:55:44",
				"updated_at": "2020-10-20 15:55:44",
				"deleted_at": null
			},
			{
				"id": 13,
				"uniacid": 2,
				"subject_id": 1,
				"content": "你好6666",
				"answer": 0,
				"created_at": "2020-10-20 15:55:44",
				"updated_at": "2020-10-20 15:55:44",
				"deleted_at": null
			}
		]
	}
}

返回参数说明:

参数名 类型 说明
title string 题目标题
uid_reward_value int 奖励会员积分
parent_reward_value int 奖励会员上级积分
data[has_many_video_subject][has_one_video][id] int 视频id
data[has_many_video_subject][has_one_video][title] string 视频标题
data[has_many_video_subject][has_one_video][title] string 视频标题
data[has_many_answer][0][content] string 答案内容
data[has_many_answer][0][subject_id] int 题目id
data[has_many_answer][0][id] string 答案id
data[has_many_answer][0][answer] int 是否正确答案: 0错误 1正确

备注: