简要描述:

请求域名:

  • http://xx.com

请求URL:

GET/plugin.instation-message.admin.set.index(获取视图)
POST/plugin.instation-message.admin.set.index(传值set,修改基础设置)

修改基础设置时传递的参数:

参数名 是否必须 类型 说明
set[is_open] int 插件开启状态,0关1开
set[msg_type] array 所有选中类型的id

返回示例:

正确时返回的视图数据:(随着视图一并返回,需要进行json_encode)

{
	"set": {
		"is_open": 1,
		"msg_type": [
			1,2,3,6,8
		]
	},
	"msgType": [
		{
			"id": 1,
			"name": "交易物流",
			"icon": "icon-massage_trade_logistics",
			"class_name": "img1"
		},
		{
			"id": 2,
			"name": "提现通知",
			"icon": "icon-massage_withdrawal",
			"class_name": "img2"
		},
		{
			"id": 3,
			"name": "申请通知",
			"icon": "icon-massage_apply",
			"class_name": "img3"
		},
		{
			"id": 4,
			"name": "客户通知",
			"icon": "icon-massage_client",
			"class_name": "img4"
		},
		{
			"id": 5,
			"name": "资产通知",
			"icon": "icon-massage_assets",
			"class_name": "img5"
		},
		{
			"id": 6,
			"name": "服务通知",
			"icon": "icon-massage_msg",
			"class_name": "img6"
		},
		{
			"id": 7,
			"name": "订单提醒",
			"icon": "icon-massage_order",
			"class_name": "img7"
		},
		{
			"id": 8,
			"name": "活动优惠",
			"icon": "icon-massage_discount",
			"class_name": "img8"
		}
	]
}
{
	"result": 1,
	"msg": "设置成功",
	"data": []
}

错误时返回:

{
	"result": 0,
	"msg": "设置失败",
	"data": []
}

视图数据返回参数说明:

参数名 类型 说明
set.is_open int 插件开启状态,0关1开
set.msg_type array 选中的类型的id
msgType.[0].id int 类型id
msgType.[0].name string 类型名称

备注:

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