提交 588f0012 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'fix/oauth' into 'wrdp'

oauth登录认证错误处理

See merge request o2oa/o2oa!5933
......@@ -1867,4 +1867,29 @@
* var sql = this.getFileSQL();
*
* return "SELECT o FROM com.x.processplatform.core.entity.content.Task o WHERE "+sql
*/
\ No newline at end of file
*/
/**
* this.print是一个方法,在服务器控制台输出信息。<br/>
* @module print()
* @o2category server
* @o2ordernumber 145
*
* @param {(String)} text 要输出的文本信息。</b>
* @param {(type)} type 要输出的文本信息的类型,会添加到输出信息的前面,默认为“PRINT”。</b>
* @example
* this.print("这是我要输出的信息");
* this.print("这是一个错误信息信息", "ERROR");
*/
/**
* this.print是一个方法,在服务器控制台输出信息。<br/>
* @module print()
* @o2category server
* @o2ordernumber 145
*
* @param {(String)} text 要输出的文本信息。</b>
* @param {(type)} type 要输出的文本信息的类型,会添加到输出信息的前面,默认为“PRINT”。</b>
* @example
* this.print("这是我要输出的信息");
* this.print("这是一个错误信息信息", "ERROR");
*/
......@@ -76,8 +76,8 @@
}
}.bind(this), function(){
document.write("<div style='font-size: 24px; margin: 40px auto;'>无法获取用户凭证, 您可能未绑定“"+oauth+"”账号。</div>");
document.write("<div style='font-size: 24px; margin: 40px auto;'>请<a href='/x_desktop/redirect.html?url="+encodeURIComponent("../x_desktop/oauth.html?oauth=ssss&redirect=&method=oauthBind")+"'>点击此处登陆</a>后,重新扫码绑定账号。</div>")
document.write("<div style='text-align: center; font-size: 24px; margin: 40px auto;'>无法获取用户凭证, 您可能未绑定“"+oauth+"”账号。</div>");
document.write("<div style='text-align: center; font-size: 18px; margin: 40px auto;'>请<a href='/x_desktop/redirect.html?url="+encodeURIComponent("../x_desktop/oauth.html?oauth=ssss&redirect=&method=oauthBind")+"'>点击此处登陆</a>后,重新扫码绑定账号。</div>")
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册