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
83314965
Commit
83314965
authored
Aug 01, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pp
parent
f4198cce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
center-manage/app/base/service/impl/common/channelSve.js
+1
-1
center-manage/app/base/service/impl/common/channelhandlers/aliCloud.js
+11
-11
center-manage/app/base/service/impl/common/channelhandlers/tencentCloud.js
+0
-0
No files found.
center-manage/app/base/service/impl/common/channelSve.js
View file @
83314965
...
...
@@ -22,7 +22,7 @@ class ChannelService extends ServiceBase {
if
(
!
this
.
handlers
[
fileName
][
method
])
{
throw
Error
(
`请在
${
fileName
}
文件中定义渠道流量的处理方法
${
method
}
`
)
}
let
rtn
=
await
this
.
handlers
[
fileName
][
method
](
datajson
);
let
rtn
=
await
this
.
handlers
[
fileName
][
method
](
datajson
,
channelobj
);
return
rtn
;
}
async
create
(
p
,
q
,
req
)
{
...
...
center-manage/app/base/service/impl/common/channelhandlers/ali.js
→
center-manage/app/base/service/impl/common/channelhandlers/ali
Cloud
.js
View file @
83314965
...
...
@@ -175,7 +175,7 @@ class AliHandler {
}
//交付单处理
async
pushOrderDelivery
(
datajson
)
{
async
pushOrderDelivery
(
datajson
,
channelobj
)
{
console
.
log
(
"put in queue-----------------------------------------------------------------------------------------------------"
,
datajson
);
try
{
console
.
log
(
"交付单数据:"
+
JSON
.
stringify
(
datajson
));
...
...
@@ -212,6 +212,10 @@ class AliHandler {
}
else
{
let
obj
=
await
this
.
actionBodyHandler
(
datajson
.
actionBody
);
//渠道名称和渠道编码
obj
.
channelSource
=
channelobj
.
name
;
obj
.
channelNumber
=
channelobj
.
code
;
//分配业务员
if
(
datajson
.
actionBody
.
needsolution
.
salesmanInfo
.
salesmanChannelId
)
{
//去数据库查询该业务员信息
...
...
@@ -219,9 +223,9 @@ class AliHandler {
let
resInfo
=
await
this
.
userService
.
getSalesmanInfo
(
datajson
.
actionBody
.
needsolution
.
salesmanInfo
.
salesmanChannelId
);
obj
.
salesmanOpcode
=
resInfo
.
opath
;
obj
.
salesmanName
=
resInfo
.
nickName
;
obj
.
servicerCode
=
resInfo
.
company_id
;
obj
.
servicerCode
=
resInfo
.
company_id
;
}
catch
(
error
)
{
console
.
log
(
"salesmanChannelId: "
+
datajson
.
actionBody
.
needsolution
.
salesmanInfo
.
salesmanChannelId
+
"获取业务员opcode失败:"
+
error
)
console
.
log
(
"salesmanChannelId: "
+
datajson
.
actionBody
.
needsolution
.
salesmanInfo
.
salesmanChannelId
+
"获取业务员opcode失败:"
+
error
)
}
}
...
...
@@ -419,18 +423,14 @@ class AliHandler {
obj
.
sellingPrice
=
data
.
needsolution
.
totalSum
;
}
//渠道名称和渠道编码
obj
.
channelSource
=
"aliCloud"
;
obj
.
channelNumber
=
"阿里云"
;
if
(
data
.
needsolution
.
salesmanInfo
)
{
//业务员id
if
(
data
.
needsolution
.
salesmanInfo
.
salesmanId
)
{
if
(
data
.
needsolution
.
salesmanInfo
)
{
//业务员id
if
(
data
.
needsolution
.
salesmanInfo
.
salesmanId
)
{
obj
.
salesmanId
=
data
.
needsolution
.
salesmanInfo
.
salesmanId
;
}
if
(
data
.
needsolution
.
salesmanInfo
.
salesmanName
)
{
//业务员name
if
(
data
.
needsolution
.
salesmanInfo
.
salesmanName
)
{
//业务员name
obj
.
salesmanName
=
data
.
needsolution
.
salesmanInfo
.
salesmanName
;
}
if
(
data
.
needsolution
.
salesmanInfo
.
salesmanMobile
)
{
//业务员手机
if
(
data
.
needsolution
.
salesmanInfo
.
salesmanMobile
)
{
//业务员手机
obj
.
salesmanPhone
=
data
.
needsolution
.
salesmanInfo
.
salesmanMobile
;
}
}
...
...
center-manage/app/base/service/impl/common/channelhandlers/t
x
.js
→
center-manage/app/base/service/impl/common/channelhandlers/t
encentCloud
.js
View file @
83314965
File moved
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