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
1cdebd1f
Commit
1cdebd1f
authored
Jul 29, 2020
by
王栋源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
87808f48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
48 deletions
+61
-48
center-channel/app/base/service/impl/common/centerorderSve.js
+59
-46
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
+2
-2
No files found.
center-channel/app/base/service/impl/common/centerorderSve.js
View file @
1cdebd1f
...
...
@@ -203,10 +203,10 @@ class CenterorderService extends AppServiceBase {
/**
* 推送ICP交付信息至企业宝(交付系统)
*/
async
pushIcpOrderDelivery2Qfb
(
orderNo
,
needsolution
)
{
async
pushIcpOrderDelivery2Qfb
(
orderNo
,
needsolution
)
{
var
pushObj
=
{
orderNo
:
orderNo
,
needsolution
:
needsolution
orderNo
:
orderNo
,
needsolution
:
needsolution
};
var
url
=
this
.
qifubaoUrl
+
"xxx/xxxxx"
;
var
rtn
=
await
this
.
execClient
.
execPost
(
pushObj
,
url
);
...
...
@@ -254,7 +254,7 @@ class CenterorderService extends AppServiceBase {
if
(
orderrtn
.
data
)
{
pobj
.
actionBody
.
orderNo
=
orderrtn
.
data
.
orderNo
}
pobj
.
actionBody
.
channelSolutionNo
=
pobj
.
actionBody
.
bizId
;
pobj
.
actionBody
.
channelSolutionNo
=
pobj
.
actionBody
.
bizId
;
pobj
.
actionType
=
"receiveSolutionPayInfo"
;
var
url
=
settings
.
centerOrderUrl
()
+
"action/icapi/springBoard"
;
...
...
@@ -270,14 +270,27 @@ class CenterorderService extends AppServiceBase {
if
(
solutiondata
.
data
&&
solutiondata
.
data
.
channelNeedNo
)
{
pobj
.
actionBody
.
needId
=
solutiondata
.
data
.
channelNeedNo
;
}
if
(
pobj
.
actionBody
.
channelItemCode
==
'5'
)
{
pobj
.
actionBody
.
regType
=
"ali.icp"
;
}
else
if
(
pobj
.
actionBody
.
channelItemCode
==
'7'
)
{
pobj
.
actionBody
.
regType
=
"ali.edi"
;
if
(
pobj
.
actionBody
.
channelItemCode
==
'5'
)
{
pobj
.
actionBody
.
regType
=
"ali.icp"
;
}
else
if
(
pobj
.
actionBody
.
channelItemCode
==
'7'
)
{
pobj
.
actionBody
.
regType
=
"ali.edi"
;
}
if
(
solutiondata
.
status
==
0
)
{
var
fqobj
=
{
"actionType"
:
"getOrderDetails"
,
"actionBody"
:
{
"area"
:
pobj
.
actionBody
.
province
,
"city"
:
pobj
.
actionBody
.
province
,
"regType"
:
pobj
.
actionBody
.
regType
,
"orderNo"
:
pobj
.
actionBody
.
channelOrder
.
channelOrderNo
,
"orderPrice"
:
pobj
.
actionBody
.
orderPrice
,
"phone"
:
pobj
.
actionBody
.
mobile
,
"needId"
:
solutiondata
.
data
.
channelNeedNo
}
}
pobj
.
actionBody
.
orderNo
=
pobj
.
actionBody
.
channelOrder
.
channelOrderNo
;
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"paySucc
ess"
);
this
.
utilsPushSve
.
aliBusiness2Fq
(
fqobj
,
"pushOrderICPBusin
ess"
);
}
return
system
.
getResultSuccess
();
}
...
...
@@ -307,7 +320,7 @@ class CenterorderService extends AppServiceBase {
};
var
self
=
this
;
//推送方案
this
.
pushIcpSolution
(
pushObj
,
needsolution
.
solutionNo
,
pobj
.
appInfo
,
self
);
this
.
pushIcpSolution
(
pushObj
,
needsolution
.
solutionNo
,
pobj
.
appInfo
,
self
);
return
system
.
getResultSuccess
();
}
return
res
;
...
...
@@ -330,7 +343,7 @@ class CenterorderService extends AppServiceBase {
var
a
=
await
self
.
reqCenterOrderApi
(
reqObj2
);
//保存渠道方案id
if
(
a
&&
a
.
status
==
0
)
{
//推送方案确认信息
await
self
.
aliclient
.
reqbyget
({
action
:
"ConfirmIntention"
,
reqbody
:{
BizId
:
pushObj
.
IntentionBizId
},
apiVersion
:
"2019-05-08"
});
await
self
.
aliclient
.
reqbyget
({
action
:
"ConfirmIntention"
,
reqbody
:
{
BizId
:
pushObj
.
IntentionBizId
},
apiVersion
:
"2019-05-08"
});
}
}
}
...
...
@@ -376,7 +389,7 @@ class CenterorderService extends AppServiceBase {
};
var
self
=
this
;
//推送方案材料
self
.
aliclient
.
reqbyget
({
action
:
"SavePartnerSubmitMaterial"
,
reqbody
:
pushObj
,
apiVersion
:
"2019-05-08"
});
self
.
aliclient
.
reqbyget
({
action
:
"SavePartnerSubmitMaterial"
,
reqbody
:
pushObj
,
apiVersion
:
"2019-05-08"
});
return
system
.
getResultSuccess
();
}
return
res
;
...
...
@@ -389,12 +402,12 @@ class CenterorderService extends AppServiceBase {
//推送数据至阿里
// var pushObj = res.data;
var
pushObj
=
{
BizId
:
res
.
data
.
BizId
,
OfficialFileURL
:
res
.
data
.
OfficialFileURL
,
ApplicationStatus
:
res
.
data
.
ApplicationStatus
BizId
:
res
.
data
.
BizId
,
OfficialFileURL
:
res
.
data
.
OfficialFileURL
,
ApplicationStatus
:
res
.
data
.
ApplicationStatus
};
//推送方案
this
.
aliclient
.
reqbyget
({
action
:
"AcceptPartnerNotification"
,
reqbody
:
pushObj
,
apiVersion
:
"2019-05-08"
});
this
.
aliclient
.
reqbyget
({
action
:
"AcceptPartnerNotification"
,
reqbody
:
pushObj
,
apiVersion
:
"2019-05-08"
});
return
system
.
getResultSuccess
();
}
return
res
;
...
...
@@ -413,81 +426,81 @@ class CenterorderService extends AppServiceBase {
BizId
:
ab
.
BizId
,
Note
:
ab
.
Note
};
//关闭方案
this
.
aliclient
.
reqbyget
({
action
:
"CloseIcpProduce"
,
reqbody
:
pushObj
,
apiVersion
:
"2019-05-08"
});
this
.
aliclient
.
reqbyget
({
action
:
"CloseIcpProduce"
,
reqbody
:
pushObj
,
apiVersion
:
"2019-05-08"
});
return
system
.
getResultSuccess
();
}
return
res
;
}
//--------------------------阿里ICP---end--------------------------------------------------------
//LOGO场景接口服务
async
downloadlogoscene
(
pobj
){
async
downloadlogoscene
(
pobj
)
{
var
reqUrl
=
"http://123.57.217.203:4724/api/downloadscene"
;
//"http://ailogo-service/api/downloadscene";
var
obj
=
pobj
.
actionBody
;
if
(
!
obj
.
title
)
{
return
system
.
getResult
(
null
,
"品牌名称不能为空"
);
if
(
!
obj
.
title
)
{
return
system
.
getResult
(
null
,
"品牌名称不能为空"
);
}
if
(
!
obj
.
id
)
{
return
system
.
getResult
(
null
,
"品牌id不能为空"
);
if
(
!
obj
.
id
)
{
return
system
.
getResult
(
null
,
"品牌id不能为空"
);
}
var
rtn
=
null
;
try
{
rtn
=
await
this
.
execClient
.
execPost
(
obj
,
reqUrl
);
var
res
=
JSON
.
parse
(
rtn
.
stdout
);
return
res
;
}
catch
(
e
)
{
return
system
.
getResult
(
null
,
"获取logo场景异常"
);
}
catch
(
e
)
{
return
system
.
getResult
(
null
,
"获取logo场景异常"
);
}
}
//换一批logo
async
changelogo
(
pobj
){
async
changelogo
(
pobj
)
{
var
reqUrl
=
"http://123.57.217.203:4724/api/changelogo"
;
var
obj
=
pobj
.
actionBody
;
if
(
!
obj
.
title
)
{
return
system
.
getResult
(
null
,
"品牌名称不能为空"
);
if
(
!
obj
.
title
)
{
return
system
.
getResult
(
null
,
"品牌名称不能为空"
);
}
if
(
!
obj
.
profession
)
{
return
system
.
getResult
(
null
,
"行业名称不能为空"
);
if
(
!
obj
.
profession
)
{
return
system
.
getResult
(
null
,
"行业名称不能为空"
);
}
if
(
!
obj
.
description
)
{
obj
.
description
=
""
;
if
(
!
obj
.
description
)
{
obj
.
description
=
""
;
}
var
rtn
=
null
;
try
{
rtn
=
await
this
.
execClient
.
execPost
(
obj
,
reqUrl
);
var
res
=
JSON
.
parse
(
rtn
.
stdout
);
return
res
;
}
catch
(
e
)
{
return
system
.
getResult
(
null
,
"获取logo异常"
);
}
catch
(
e
)
{
return
system
.
getResult
(
null
,
"获取logo异常"
);
}
}
//生成logo
async
singlelogo
(
pobj
){
async
singlelogo
(
pobj
)
{
var
reqUrl
=
"http://123.57.217.203:4724/api/singlelogo"
;
var
obj
=
pobj
.
actionBody
;
if
(
!
obj
.
title
)
{
return
system
.
getResult
(
null
,
"品牌名称不能为空"
);
if
(
!
obj
.
title
)
{
return
system
.
getResult
(
null
,
"品牌名称不能为空"
);
}
// if(!obj.subtitle){
// return system.getResult(null,"品牌标语不能为空");
// }
if
(
!
obj
.
profession
)
{
return
system
.
getResult
(
null
,
"行业名称不能为空"
);
if
(
!
obj
.
profession
)
{
return
system
.
getResult
(
null
,
"行业名称不能为空"
);
}
if
(
!
obj
.
description
)
{
obj
.
description
=
""
;
if
(
!
obj
.
description
)
{
obj
.
description
=
""
;
}
var
rtn
=
null
;
try
{
rtn
=
await
this
.
execClient
.
execPost
(
obj
,
reqUrl
);
var
res
=
JSON
.
parse
(
rtn
.
stdout
);
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
return
res
;
//system.getResultSuccess(res.data);
}
else
{
return
system
.
getResult
(
null
,
"生成logo操作失败"
);
}
else
{
return
system
.
getResult
(
null
,
"生成logo操作失败"
);
}
}
catch
(
e
)
{
return
system
.
getResult
(
null
,
"生成logo操作异常"
);
}
catch
(
e
)
{
return
system
.
getResult
(
null
,
"生成logo操作异常"
);
}
}
}
...
...
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
1cdebd1f
...
...
@@ -45,9 +45,9 @@ class UtilsNeedService extends AppServiceBase {
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushNeedBusiness"
);
}
else
{
if
(
pobj
.
actionBody
.
channel_type_code
==
5
){
pobj
.
actionBody
.
regT
ype
=
"ali.icp"
;
pobj
.
actionBody
.
t
ype
=
"ali.icp"
;
}
else
{
pobj
.
actionBody
.
regT
ype
=
"ali.edi"
;
pobj
.
actionBody
.
t
ype
=
"ali.edi"
;
}
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushNeedICPBusiness"
);
}
...
...
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