Commit aed84a23 by 施宇

111

parent 10483aff
Showing with 5 additions and 5 deletions
...@@ -34,7 +34,7 @@ $(function () { ...@@ -34,7 +34,7 @@ $(function () {
}, },
apiUrl: WebIM.config.apiURL apiUrl: WebIM.config.apiURL
}; };
conn.registerUser(options); self.conn.registerUser(options);
}, },
testUser: function (user, password) { //检测用户是否登入 testUser: function (user, password) { //检测用户是否登入
var self = this; var self = this;
...@@ -61,7 +61,7 @@ $(function () { ...@@ -61,7 +61,7 @@ $(function () {
}, },
error: function (err) { error: function (err) {
if (err.status == '404') {//主动帮用户注册 if (err.status == '404') {//主动帮用户注册
self.registerUser(user,password) self.registerUser(user,password);
} else { } else {
layer.msg('网络出现问题,请重试!'); layer.msg('网络出现问题,请重试!');
} }
...@@ -429,12 +429,12 @@ $(function () { ...@@ -429,12 +429,12 @@ $(function () {
}, //失败回调; }, //失败回调;
}); });
}, },
login: function () { login: function (user,password) {
// open,登录; // open,登录;
var options = { var options = {
apiUrl: WebIM.config.apiURL, apiUrl: WebIM.config.apiURL,
user: "18271408717", user: user,
pwd: "123456", pwd: password,
appKey: WebIM.config.appkey appKey: WebIM.config.appkey
}; };
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment