Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
aed84a23
authored
Jul 02, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
111
parent
10483aff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
dist/js/chat/index.js
dist/js/chat/index.js
View file @
aed84a23
...
...
@@ -34,7 +34,7 @@ $(function () {
},
apiUrl
:
WebIM
.
config
.
apiURL
};
conn
.
registerUser
(
options
);
self
.
conn
.
registerUser
(
options
);
},
testUser
:
function
(
user
,
password
)
{
//检测用户是否登入
var
self
=
this
;
...
...
@@ -61,7 +61,7 @@ $(function () {
},
error
:
function
(
err
)
{
if
(
err
.
status
==
'404'
)
{
//主动帮用户注册
self
.
registerUser
(
user
,
password
)
self
.
registerUser
(
user
,
password
)
;
}
else
{
layer
.
msg
(
'网络出现问题,请重试!'
);
}
...
...
@@ -429,12 +429,12 @@ $(function () {
},
//失败回调;
});
},
login
:
function
()
{
login
:
function
(
user
,
password
)
{
// open,登录;
var
options
=
{
apiUrl
:
WebIM
.
config
.
apiURL
,
user
:
"18271408717"
,
pwd
:
"123456"
,
user
:
user
,
pwd
:
password
,
appKey
:
WebIM
.
config
.
appkey
};
try
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment