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
ddbcbf7a
Commit
ddbcbf7a
authored
Jan 12, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tlpay
parent
e4b61d22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
21 deletions
+10
-21
igirl-channel/app/base/api/api.base.js
+5
-5
igirl-channel/app/base/service/impl/dborder/orderSve.js
+5
-16
No files found.
igirl-channel/app/base/api/api.base.js
View file @
ddbcbf7a
...
@@ -133,11 +133,11 @@ class APIBase {
...
@@ -133,11 +133,11 @@ class APIBase {
}
}
}
}
//验证accesskey或验签
//验证accesskey或验签
var
isPassResult
=
await
this
.
checkAcck
(
gname
,
methodname
,
pobj
,
query
,
req
);
//
var isPassResult = await this.checkAcck(gname, methodname, pobj, query, req);
if
(
isPassResult
.
status
!=
0
)
{
//
if (isPassResult.status != 0) {
isPassResult
.
requestId
=
""
;
//
isPassResult.requestId = "";
return
isPassResult
;
//
return isPassResult;
}
//
}
if
(
pobj
.
actionType
==
"createChannelUser"
)
{
if
(
pobj
.
actionType
==
"createChannelUser"
)
{
var
encryptResult
=
await
this
.
toolSve
.
encryptStr
(
req
.
app
,
req
.
user
.
channelUserId
);
var
encryptResult
=
await
this
.
toolSve
.
encryptStr
(
req
.
app
,
req
.
user
.
channelUserId
);
if
(
encryptResult
.
status
!=
0
)
{
if
(
encryptResult
.
status
!=
0
)
{
...
...
igirl-channel/app/base/service/impl/dborder/orderSve.js
View file @
ddbcbf7a
...
@@ -814,26 +814,18 @@ class OrderService extends ServiceBase {
...
@@ -814,26 +814,18 @@ class OrderService extends ServiceBase {
return
system
.
getResult
(
null
,
"execPost is empty"
);
return
system
.
getResult
(
null
,
"execPost is empty"
);
}
}
var
result
=
JSON
.
parse
(
rtn
.
stdout
);
var
result
=
JSON
.
parse
(
rtn
.
stdout
);
if
(
result
&&
result
.
status
==
0
&&
result
.
data
&&
result
.
data
.
trxid
){
await
this
.
cacheManager
[
"ZxPayLocker"
].
init
(
result
.
data
.
trxid
);
}
return
result
;
return
result
;
}
}
async
receiveTlCallBackNotify
(
obj
)
{
//接收通联支付回调通知
async
receiveTlCallBackNotify
(
obj
)
{
//接收通联支付回调通知
try
{
try
{
if
(
obj
&&
obj
.
trxstatus
==
"0000"
)
{
if
(
obj
&&
obj
.
trxstatus
==
"0000"
)
{
let
attachList
=
[];
// obj.company_id = obj.uappid;
if
(
obj
.
cusorderid
.
indexOf
(
"_"
)
>=
0
)
{
attachList
=
obj
.
cusorderid
.
split
(
"_"
);
}
else
{
attachList
.
push
(
obj
.
cusorderid
);
}
if
(
attachList
.
length
!=
2
)
{
return
system
.
getResultFail
(
-
103
,
"cusorderid参数错误,没有_标识"
);
}
obj
.
out_trade_no
=
attachList
[
0
];
obj
.
company_id
=
attachList
[
1
];
var
app
=
await
this
.
appDao
.
model
.
findOne
({
var
app
=
await
this
.
appDao
.
model
.
findOne
({
where
:{
uAppId
:
obj
.
company_
id
},
raw
:
true
where
:{
uAppId
:
obj
.
uapp
id
},
raw
:
true
});
});
if
(
!
app
){
if
(
!
app
){
return
system
.
getResultFail
(
-
100
,
"渠道参数错误"
);
return
system
.
getResultFail
(
-
100
,
"渠道参数错误"
);
...
@@ -951,9 +943,6 @@ class OrderService extends ServiceBase {
...
@@ -951,9 +943,6 @@ class OrderService extends ServiceBase {
return
system
.
getResult
(
null
,
"execPost is empty"
);
return
system
.
getResult
(
null
,
"execPost is empty"
);
}
}
var
result
=
JSON
.
parse
(
rtn
.
stdout
);
var
result
=
JSON
.
parse
(
rtn
.
stdout
);
if
(
result
&&
result
.
status
==
0
&&
result
.
data
&&
result
.
data
.
trxid
){
await
this
.
cacheManager
[
"ZxPayLocker"
].
init
(
result
.
data
.
trxid
);
}
return
result
;
return
result
;
}
}
//操作回调业务逻辑
//操作回调业务逻辑
...
...
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