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
1a7163d2
Commit
1a7163d2
authored
Nov 06, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
icpclose
parent
56c7131b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
+55
-0
igirl-channel-gateway/app/base/api/impl/action/intentionapi.js
+3
-0
igirl-channel-gateway/app/base/service/impl/utilsSve/utilsNeedSve.js
+52
-0
No files found.
igirl-channel-gateway/app/base/api/impl/action/intentionapi.js
View file @
1a7163d2
...
@@ -43,6 +43,9 @@ class TradetransferAPI extends APIBase {
...
@@ -43,6 +43,9 @@ class TradetransferAPI extends APIBase {
case
"icpOrderStatus"
:
//接收方案反馈信息
case
"icpOrderStatus"
:
//接收方案反馈信息
opResult
=
await
this
.
utilsNeedSve
.
icpOrderStatus
(
pobj
);
opResult
=
await
this
.
utilsNeedSve
.
icpOrderStatus
(
pobj
);
break
;
break
;
case
"icpOrderClose"
:
//关闭icp订单
opResult
=
await
this
.
utilsNeedSve
.
icpOrderClose
(
pobj
);
break
;
// -------------提交Icp需求--------庄冰2020.10.21-------百度Icp接入使用--------end------------------
// -------------提交Icp需求--------庄冰2020.10.21-------百度Icp接入使用--------end------------------
case
"needClose"
:
//关闭需求
case
"needClose"
:
//关闭需求
opResult
=
await
this
.
utilsNeedSve
.
reqcenterchannel
(
pobj
);
opResult
=
await
this
.
utilsNeedSve
.
reqcenterchannel
(
pobj
);
...
...
igirl-channel-gateway/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
1a7163d2
...
@@ -474,6 +474,58 @@ class UtilsNeedSve extends AppServiceBase {
...
@@ -474,6 +474,58 @@ class UtilsNeedSve extends AppServiceBase {
"errorCode"
:
"ok"
"errorCode"
:
"ok"
};
};
}
}
//百度icp 2.4 请求 关闭icp订单
async
icpOrderClose
(
pobj
)
{
var
self
=
this
;
if
(
!
pobj
.
appInfo
||
!
pobj
.
appInfo
.
uapp_key
||
!
pobj
.
appInfo
.
uapp_secret
){
return
{
"requestId"
:
self
.
getUUID
(),
"success"
:
false
,
"errorMsg"
:
"无效应用"
,
"errorCode"
:
"ok"
};
}
// 获取app token
// var tokenInfo = await this.getCenterToken();
var
tokenInfo
=
await
this
.
getCenterTokenByApp
(
pobj
.
appInfo
);
if
(
tokenInfo
.
status
!=
0
)
{
return
{
"requestId"
:
self
.
getUUID
(),
"success"
:
false
,
"errorMsg"
:
""
,
"errorCode"
:
"ok"
};
}
var
token
=
tokenInfo
.
data
.
token
;
// icpNotify
var
url
=
settings
.
centerChannelUrl
()
+
"/api/opreceive/need/springBoard"
;
pobj
.
actionType
=
"icpOrderClose"
;
var
rtn
=
await
this
.
execlient
.
execPostTK
(
pobj
,
url
,
token
);
if
(
!
rtn
||
!
rtn
.
stdout
)
{
return
{
"requestId"
:
self
.
getUUID
(),
"success"
:
false
,
"errorMsg"
:
"网络错误"
,
"errorCode"
:
"ok"
};
}
var
result
=
JSON
.
parse
(
rtn
.
stdout
);
if
(
result
.
status
!=
0
)
{
return
{
"requestId"
:
result
.
requestId
,
"success"
:
false
,
"errorMsg"
:
result
.
msg
,
"errorCode"
:
"ok"
};
}
return
{
"requestId"
:
result
.
requestId
,
"success"
:
true
,
"errorMsg"
:
""
,
"errorCode"
:
"ok"
};
}
// -------------提交Icp需求--------庄冰2020.10.21-------百度Icp接入使用--------end------------------
// -------------提交Icp需求--------庄冰2020.10.21-------百度Icp接入使用--------end------------------
async
paySuccess
(
pobj
)
{
async
paySuccess
(
pobj
)
{
var
sobj
=
{
var
sobj
=
{
...
...
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