@@@待完善@@@

请求域名:

  • http://test.yunzshop.com

请求URL:

GET/plugin.answer-reward.api.index.get-subject

请求参数说明:

参数名 类型 说明
vid int 视频id

返回示例:

已答题时返回:

{
    "result": 1,
    "msg": "已答题",
    "data": {
        "status": 0
    }
}

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"status": 1,
		"subject": {
			"id": 1,
			"uniacid": 2,
			"title": "我很帅",
			"uid_reward_value": "100.00",
			"uid_reward_ratio": null,
			"parent_reward_value": "50.00",
			"parent_reward_ratio": null,
			"created_at": "2020-10-20 13:35:54",
			"updated_at": null,
			"deleted_at": null,
			"has_many_answer": [{
					"id": 1,
					"uniacid": 2,
					"subject_id": 1,
					"content": "是的",
					"answer": 1,
					"created_at": "2020-10-20 13:35:54",
					"updated_at": null,
					"deleted_at": null
				},
				{
					"id": 2,
					"uniacid": 2,
					"subject_id": 1,
					"content": "不对",
					"answer": 0,
					"created_at": "2020-10-20 13:35:54",
					"updated_at": null,
					"deleted_at": null
				},
				{
					"id": 3,
					"uniacid": 2,
					"subject_id": 1,
					"content": "非常帅",
					"answer": 0,
					"created_at": "2020-10-20 13:35:54",
					"updated_at": null,
					"deleted_at": null
				},
				{
					"id": 4,
					"uniacid": 2,
					"subject_id": 1,
					"content": "有点",
					"answer": 0,
					"created_at": "2020-10-20 13:35:54",
					"updated_at": null,
					"deleted_at": null
				}
			]
		}
	}
}

返回参数说明:

参数名 类型 说明
status int 判断是否答题: 0 已答 1 未答
subject[id] int 题目id
subject[title] string 题目标题
subject[uid_reward_value] int 奖励会员积分
subject[parent_reward_value] int 奖励上级积分
subject[has_many_answer][id] int 答案id
subject[has_many_answer][subject_id] int 题目id
subject[has_many_answer][content] int 答案内容
subject[has_many_answer][answer] int 是否正确答案 : 0错误 1正确

备注: