Browse Source

Merge pull request #1072 in BA/design from ~ZACK/design:9.0release to 9.0release

* commit '3b7ba824093269f538321d2a8685fb66736fbe00':
  加个参数
master
superman 7 years ago
parent
commit
70c96c4213
  1. 14
      designer_base/src/com/fr/design/extra/PluginWebBridge.java

14
designer_base/src/com/fr/design/extra/PluginWebBridge.java

@ -318,7 +318,7 @@ public class PluginWebBridge {
}
public void getPluginPrefix(final JSObject callback){
public void getPluginPrefix(final JSObject callback) {
JSCallback jsCallback = new JSCallback(webEngine, callback);
PluginOperateUtils.getPluginPrefix(jsCallback);
}
@ -383,7 +383,7 @@ public class PluginWebBridge {
public String getLoginInfo(final JSObject callback) {
registerLoginInfo(callback);
BBSUserInfo bbsUserInfo = BBSPluginLogin.getInstance().getUserInfo();
return bbsUserInfo == null ? "": bbsUserInfo.getUserName();
return bbsUserInfo == null ? "" : bbsUserInfo.getUserName();
}
/**
@ -510,8 +510,8 @@ public class PluginWebBridge {
}
//通过QQ登录后通知登录
public void ucsynLogin(long uid, String username){
BBSUserInfo bbsUserInfo = new BBSUserInfo(username, "");
public void ucsynLogin(long uid, String username, String password, final JSONObject callback) {
BBSUserInfo bbsUserInfo = new BBSUserInfo(username, password);
BBSPluginLogin.getInstance().login(bbsUserInfo);
uiLabel.setText(username);
}
@ -529,21 +529,21 @@ public class PluginWebBridge {
/**
* 初始化设计器部分
*/
public void initExtraDiff(final JSObject callback){
public void initExtraDiff(final JSObject callback) {
}
/**
* 国际化
*/
public String parseI18(final String key){
public String parseI18(final String key) {
return Inter.getLocText(key);
}
/**
* 是否是在设计器中操作
*/
public boolean isDesigner(){
public boolean isDesigner() {
return true;
}

Loading…
Cancel
Save