Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
64431ec3
Commit
64431ec3
authored
Aug 27, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
2d6a2c89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
63 deletions
+3
-63
center-manage/app/base/controller/impl/auth/userCtl.js
+3
-3
center-manage/app/base/service/impl/common/channelhandlers/tx.js
+0
-60
No files found.
center-manage/app/base/controller/impl/auth/userCtl.js
View file @
64431ec3
...
...
@@ -106,9 +106,9 @@ class UserCtl extends CtlBase {
}
async
pmlogin
(
pobj
,
qobj
,
req
)
{
//平台注册设置平台的应用ID
//
let verifyres = await this.captchaSve.apiValidator({key:pobj.key,code:pobj.code});
//
if (verifyres.status !== 0)
//
return verifyres;
let
verifyres
=
await
this
.
captchaSve
.
apiValidator
({
key
:
pobj
.
key
,
code
:
pobj
.
code
});
if
(
verifyres
.
status
!==
0
)
return
verifyres
;
let
rtn
=
await
this
.
service
.
pmlogin
(
pobj
,
qobj
,
req
);
let
msg
=
null
if
(
!
rtn
)
{
//登录错误
...
...
center-manage/app/base/service/impl/common/channelhandlers/tx.js
View file @
64431ec3
...
...
@@ -617,67 +617,7 @@ class TxHandler {
"data"
:
null
}
}
<<<<<<<
HEAD
// 服务状态变更通知
async
ServiceStatusNotify
(
datajson
)
{
try
{
let
rc
=
system
.
getObject
(
"util.execClient"
);
let
requrl
=
this
.
queueUrl
;
let
ab
=
Object
.
assign
({},
datajson
);
ab
.
status
=
ab
.
status
===
6
?
"inserivice"
:
"closed"
;
let
params
=
{
"actionType"
:
"produceData"
,
"actionBody"
:
{
"pushUrl"
:
this
.
icUrl
+
"/deliverybillCtl/notifyServiceStatusChange"
,
"actionType"
:
"notifyServiceStatusChange"
,
"identifyCode"
:
"book-manage"
,
"messageBody"
:
ab
,
"headData"
:
{
'Authorization'
:
'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTg0MzQ2ODcsImlzcyI6InJFRVN6TU5ZUlM2RnBWNnZlY09vdExPNWdPcUNXSmFQIiwiaWF0IjoxNTk4NDMxMDg3fQ.isQ40HqHHfJ-rTsUQOhRIdu4XCitZU-AfzeqSH4kPbQ'
,
'XAPPKEY'
:
'f6b59b74-f943-4735-bb86-e05d6b7fd78e'
}
}
};
let
rtn
=
await
rc
.
execPost
(
params
,
requrl
);
let
j
=
JSON
.
parse
(
rtn
.
stdout
);
if
(
j
.
status
===
1
)
{
return
this
.
getResult
(
datajson
.
requestId
);
}
else
{
return
this
.
getResult
(
datajson
.
requestId
,
rtn
.
stderr
);
}
}
catch
(
err
)
{
return
this
.
getResult
(
datajson
.
requestId
,
err
);
}
}
async
getResult
(
reqId
,
err
=
"not err"
)
{
if
(
err
===
"not err"
)
{
return
{
"requestId"
:
reqId
,
"success"
:
true
,
"errorCode"
:
0
,
"errorMsg"
:
"ok"
,
"data"
:
null
}
}
else
{
return
{
"requestId"
:
reqId
,
"success"
:
false
,
"errorCode"
:
-
1
,
"errorMsg"
:
err
,
"data"
:
null
}
}
}
=======
}
>>>>>>>
6
b34408d8443a74a5b97aaf995d52251e3124d04
}
module
.
exports
=
new
TxHandler
();
...
...
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