Event/Dialog

1)AlertShow(显示弹窗)

接口支持最低版本号:3.8.10

{
    "jsonrpc":"2.0",
    "method":"Event/Dialog",
    "result":{
	"error_code":0
        "message":"",
	"sub_event":"AlertShow"
        "data":{
            "alert_info":{
		     "id": str,  // 弹窗id
		     "content": str,  // 弹窗内容
		     "title": str,  // 弹窗标题
		     "checkbox_state": bool, // 检查框状态
		     "buttons":{
			"negative": str,  // 拒绝
			"negative_id":int, 
			"neutral": str,  // 中立
			"neutral_id":int,
			"positive": str,  // 接受
			"positive_id": int,
		 }
            }
        }
    }
}

2)HandleAlert(处理弹窗结果)

接口支持最低版本号:3.8.10

{
    "jsonrpc":"2.0",
    "method":"Event/Dialog",
    "result":{
	"error_code":0
        "message":"",
	"sub_event":"HandleAlert"
        "data":{
            "alert": {
		"id":"",   // 弹窗id
            	"select_button_id": 0,	// 选择的按钮id
	     }
        },
    }
}

3)UpdateAlert  (更新弹窗信息)

接口支持最低版本号:3.9.150

{
    "jsonrpc":"2.0",
    "method":"Event/Dialog",
    "result":{
	"error_code":0
        "message":"",
	"sub_event":"UpdateAlert"
        "data":{
            "alert": {
		"id":"",   // 弹窗id
            	"update_content": "知道了",
		"update_item":"positive",
	     }
        },
    }
}
下载 Event/Dialog.pdf
Copyright(C)2023 HFBangFu Inc. All Rights Reserved 皖ICP备12017563号-5