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
e3639666
Commit
e3639666
authored
Apr 16, 2020
by
王栋源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
079fcee0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
18 deletions
+41
-18
center-channel/app/base/api/impl/auth/accessAuth.js
+0
-1
center-channel/app/base/api/impl/opreceive/need.js
+7
-1
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
+34
-16
No files found.
center-channel/app/base/api/impl/auth/accessAuth.js
View file @
e3639666
...
...
@@ -36,7 +36,6 @@ class AccessAuthAPI extends WEBBase {
apiVersion
:
"2019-09-02"
};
opResult
=
await
this
.
utilsTmAliyunSve
.
getAliOssInfo
(
null
,
"ATTORNEY"
,
rpcParam
);
var
tmo
=
0
;
// opResult = system.getResultSuccess(null, "测试成功");
opResult
=
system
.
getResultSuccess
(
null
,
"测试成功"
);
break
;
...
...
center-channel/app/base/api/impl/opreceive/need.js
View file @
e3639666
...
...
@@ -35,6 +35,12 @@ class Need extends APIBase {
case
"needClose"
:
//关闭需求
opResult
=
await
this
.
utilsNeedSve
.
needClose
(
pobj
,
pobj
.
actionBody
);
break
;
case
"needCloseIcp"
:
//关闭需求
opResult
=
await
this
.
utilsNeedSve
.
needCloseIcp
(
pobj
,
pobj
.
actionBody
);
break
;
case
"getItemByNeedNo"
:
opResult
=
await
this
.
utilsNeedSve
.
getItemByNeedNo
(
pobj
,
pobj
.
actionBody
);
break
;
case
"receiveFeedback"
:
//接收方案反馈信息
opResult
=
await
this
.
centerorderSve
.
reqCenterOrderApi
(
pobj
);
break
;
...
...
@@ -44,7 +50,7 @@ class Need extends APIBase {
case
"icpNotify"
:
//icp方案更新
var
rtn
=
await
this
.
utilsNeedSve
.
icpNotify
(
pobj
,
pobj
.
actionBody
);
if
(
pobj
.
actionBody
.
status
==
4
&&
rtn
.
status
==
0
)
{
opResult
=
await
self
.
utilsNeedSve
.
icpNotify
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
self
.
centerorderSve
.
icppaysuccess
(
pobj
,
pobj
.
actionBody
);
}
else
{
opResult
=
rtn
;
}
...
...
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
e3639666
...
...
@@ -97,9 +97,41 @@ class UtilsNeedService extends AppServiceBase {
}
else
{
return
system
.
getResult
(
null
,
"推送失敗 100388"
);
}
}
/**
* icp关闭需求
* @param {*} pobj
* @param {*} actionBody
*/
async
needCloseIcp
(
pobj
,
actionBody
)
{
if
(
!
actionBody
.
channelNeedNo
)
{
return
system
.
getResult
(
null
,
"actionBody.channelNeedNo can not be empty,100395"
);
}
pobj
.
actionBody
.
intentionBizId
=
pobj
.
actionBody
.
channelNeedNo
;
pobj
.
actionType
=
"needClose"
var
reqUrl
=
this
.
centerOrderUrl
+
"action/need/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
if
(
result
.
status
==
0
)
{
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushCloseNeed"
);
return
system
.
getResultSuccess
();
}
else
{
return
system
.
getResult
(
null
,
"close fail 100389"
);
}
}
//查询需求详情
async
getItemByNeedNo
(
pobj
,
actionBody
)
{
if
(
!
actionBody
.
needNo
)
{
return
system
.
getResult
(
null
,
"actionBody.needNo can not be empty,100395"
);
}
var
reqUrl
=
this
.
centerOrderUrl
+
"action/need/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
result
;
}
//状态更新
async
icpNotify
(
pobj
)
{
var
actionBody
=
pobj
.
actionBody
;
var
self
=
this
;
...
...
@@ -139,25 +171,11 @@ class UtilsNeedService extends AppServiceBase {
}
actionBody
.
newuserOtherList
=
newuserOtherList
;
}
if
(
actionBody
.
status
==
2
)
{
pobj
.
actionType
=
"submit"
;
var
url
=
settings
.
centerOrderUrl
()
+
"action/need/springBoard"
;
pobj
.
actionType
=
"receiveIcpStatusNotify"
;
var
url
=
settings
.
centerOrderUrl
()
+
"action/icpapi/springBoard"
;
var
rtn
=
await
this
.
restPostUrl
(
pobj
,
url
);
return
rtn
;
}
if
(
actionBody
.
status
==
4
)
{
pobj
.
actionType
=
"close"
;
var
url
=
settings
.
centerOrderUrl
()
+
"action/need/springBoard"
;
var
rtn
=
await
this
.
restPostUrl
(
pobj
,
url
);
return
rtn
;
}
if
(
actionBody
.
status
==
11
)
{
pobj
.
actionType
=
"close"
;
var
url
=
settings
.
centerOrderUrl
()
+
"action/need/springBoard"
;
var
rtn
=
await
this
.
restPostUrl
(
pobj
,
url
);
return
rtn
;
}
}
}
module
.
exports
=
UtilsNeedService
;
...
...
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