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
53200b9c
Commit
53200b9c
authored
Feb 26, 2021
by
宋毅
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel
parents
f4bc932d
4e2ab126
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
3 deletions
+42
-3
center-channel/app/base/api/impl/opreceive/need.js
+3
-0
center-channel/app/base/service/impl/common/centerorderSve.js
+7
-0
center-channel/app/base/service/impl/common/signSve.js
+3
-3
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
+29
-0
No files found.
center-channel/app/base/api/impl/opreceive/need.js
View file @
53200b9c
...
...
@@ -124,6 +124,9 @@ class Need extends APIBase {
// break;
break
;
//-----------接入百度ICP------end----------------------------------
case
"exportNeeds"
:
opResult
=
await
this
.
utilsNeedSve
.
exportNeeds
(
pobj
,
req
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
...
...
center-channel/app/base/service/impl/common/centerorderSve.js
View file @
53200b9c
...
...
@@ -648,6 +648,13 @@ class CenterorderService extends AppServiceBase {
pobj
.
actionBody
.
regType
=
"baidu.radiotv"
;
}
if
(
pobj
&&
pobj
.
appInfo
&&
pobj
.
appInfo
.
uapp_id
&&
pobj
.
appInfo
.
uapp_id
==
'52'
){
if
(
pobj
.
actionBody
.
channelItemCode
==
'5'
)
{
pobj
.
actionBody
.
regType
=
"ename.icp"
;
}
else
if
(
pobj
.
actionBody
.
channelItemCode
==
'7'
)
{
pobj
.
actionBody
.
regType
=
"ename.edi"
;
}
}
var
fqobj
=
{
actionBody
:
{
area
:
pobj
.
actionBody
.
province
,
...
...
center-channel/app/base/service/impl/common/signSve.js
View file @
53200b9c
...
...
@@ -115,7 +115,7 @@ class SignService{
}
module
.
exports
=
SignService
;
//
var task = new SignService();
var
task
=
new
SignService
();
// var obj = {
// "actionType": "serviceProviderSubmitMaterial",
// "actionBody": {
...
...
@@ -177,9 +177,9 @@ module.exports = SignService;
// }
// var obj={
// "bizId": "
biz_ename_1614061894_test
",
// "bizId": "
yiming_solution_test_0001
",
// "isDirectBuy": 0,
// "orderNo": "
trade_ename_1614061894_test
",
// "orderNo": "
yiming_order_test_0001
",
// "phone": "18506015665",
// "userName": "张三",
// "companyName": "测试有限公司2",
...
...
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
53200b9c
...
...
@@ -1433,6 +1433,16 @@ class UtilsNeedService extends AppServiceBase {
pobj
.
actionBody
.
type
=
"baidu.radiotv"
;
pobj
.
actionBody
.
idempotentSource
=
"baidu_radiotv"
;
}
if
(
pobj
.
appInfo
&&
pobj
.
appInfo
.
uapp_id
&&
pobj
.
appInfo
.
uapp_id
==
"52"
){
if
(
pobj
.
actionBody
.
channel_type_code
==
5
)
{
pobj
.
actionBody
.
type
=
"ename.icp"
;
pobj
.
actionBody
.
idempotentSource
=
"ename_icp"
;
}
else
if
(
pobj
.
actionBody
.
channel_type_code
==
7
)
{
pobj
.
actionBody
.
type
=
"ename.edi"
;
pobj
.
actionBody
.
idempotentSource
=
"ename_edi"
;
}
}
if
(
pobj
.
actionBody
.
description
&&
pobj
.
actionBody
.
description
.
indexOf
(
"备#"
)
<
0
)
{
pobj
.
actionBody
.
level
=
"A"
;
}
else
{
...
...
@@ -1570,6 +1580,25 @@ class UtilsNeedService extends AppServiceBase {
return
rtn
;
}
//-----------接入百度ICP------end----------------------------------
async
exportNeeds
(
pobj
,
req
){
let
url
=
this
.
centerOrderUrl
+
'action/need/springBoard'
;
if
(
!
pobj
.
actionBody
.
needsArr
){
return
system
.
getResultFail
(
-
1
,
'导入数据不能为空'
);
}
if
(
!
pobj
.
actionBody
.
uapp_id
){
return
system
.
getResultFail
(
-
1
,
'渠道id 不能为空'
);
}
pobj
.
actionType
=
'bulkCreateNeeds'
;
let
result
=
await
this
.
execPostByTimeOut
(
req
,
pobj
,
url
,
"json"
,
null
,
60
);
if
(
!
result
||
result
.
status
!=
0
)
{
return
system
.
getResult
(
null
,
result
.
msg
);
}
if
(
!
result
.
data
||
result
.
data
.
status
!=
0
)
{
return
system
.
getResult
(
null
,
result
.
data
.
msg
);
}
return
result
.
data
.
data
;
}
}
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