feat: rl_verify认证成功后用NewWindow控件在新窗口打开认证链接
This commit is contained in:
parent
414d0e66ed
commit
bd70011c01
@ -16,10 +16,23 @@ result = await rl_verify_user(org_id, user_id, vendor, project_name)
|
||||
|
||||
if result.get('success'):
|
||||
h5_link = result.get('h5_link', '')
|
||||
msg = f"认证会话已创建,请通过以下链接完成真人认证:\n{h5_link}"
|
||||
msg = "认证会话已创建,请在新窗口中完成真人认证"
|
||||
return json.dumps({
|
||||
"widgettype": "Message",
|
||||
"options": {"message": msg, "type": "success"}
|
||||
"options": {"title": "真人认证", "message": msg},
|
||||
"subwidgets": [
|
||||
{
|
||||
"widgettype": "Button",
|
||||
"options": {
|
||||
"label": "打开认证页面",
|
||||
"action": {
|
||||
"actiontype": "urlwidget",
|
||||
"target": "NewWindow",
|
||||
"url": h5_link
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
else:
|
||||
return json.dumps({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user