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
145dc209
Commit
145dc209
authored
Oct 23, 2020
by
王悦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
isDirectBuy
parent
5e256019
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
28 deletions
+36
-28
igirl-channel-gateway/app/base/service/impl/utilsSve/utilsNeedSve.js
+36
-28
No files found.
igirl-channel-gateway/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
145dc209
...
@@ -609,48 +609,56 @@ class UtilsNeedSve extends AppServiceBase {
...
@@ -609,48 +609,56 @@ class UtilsNeedSve extends AppServiceBase {
}
}
// 引用属性,channel依赖bizId order依赖intentionBizId
// 引用属性,channel依赖bizId order依赖intentionBizId
pobj
.
intentionBizId
=
pobj
.
bizId
pobj
.
intentionBizId
=
pobj
.
bizId
var
sobj
=
{
"actionType"
:
"getItemByChannelSolutionNo"
,
"actionBody"
:
pobj
}
// getItemByChannelSolutionNo
var
url
=
settings
.
centerChannelUrl
()
+
"/api/opreceive/need/springBoard"
;
var
token
=
tokenInfo
.
data
.
token
;
var
result
=
await
this
.
execlient
.
execPostTK
(
sobj
,
url
,
token
);
if
(
result
.
status
!=
0
)
{
return
{
"requestId"
:
result
.
requestId
,
"success"
:
false
,
"errorMsg"
:
result
.
msg
,
"errorCode"
:
"ok"
};
}
// 获取userpin
// 获取userpin
var
userparam
=
{
var
userparam
=
{
actionType
:
"getLoginByUserName"
,
actionType
:
"getLoginByUserName"
,
actionBody
:
{
actionBody
:
{}
"channelUserId"
:
result
.
data
.
channelUserId
,
"mobile"
:
result
.
data
.
publishMobile
,
"userName"
:
result
.
data
.
publishMobile
}
};
};
if
(
pobj
.
isDirectBuy
===
"true"
){
//直购
userparam
.
actionBody
.
channelUserId
=
pobj
.
mobile
userparam
.
actionBody
.
mobile
=
pobj
.
mobile
userparam
.
actionBody
.
userName
=
pobj
.
mobile
pobj
.
publishMobile
=
pobj
.
mobile
pobj
.
channelTypeCode
=
pobj
.
bizId
.
startsWith
(
"EDI"
)?
7
:
5
;
pobj
.
province
=
pobj
.
companyLocation
+
`(
${
pobj
.
actionType
}
)`
}
else
{
var
sobj
=
{
"actionType"
:
"getItemByChannelSolutionNo"
,
"actionBody"
:
pobj
}
// getItemByChannelSolutionNo
var
url
=
settings
.
centerChannelUrl
()
+
"/api/opreceive/need/springBoard"
;
var
token
=
tokenInfo
.
data
.
token
;
var
result
=
await
this
.
execlient
.
execPostTK
(
sobj
,
url
,
token
);
if
(
result
.
status
!=
0
)
{
return
{
"requestId"
:
result
.
requestId
,
"success"
:
false
,
"errorMsg"
:
result
.
msg
,
"errorCode"
:
"ok"
};
}
userparam
.
actionBody
.
channelUserId
=
result
.
data
.
channelUserId
userparam
.
actionBody
.
mobile
=
result
.
data
.
publishMobile
userparam
.
actionBody
.
userName
=
result
.
data
.
publishMobile
pobj
.
publishMobile
=
result
.
data
.
publishMobile
;
pobj
.
channelNeedNo
=
result
.
data
.
channelNeedNo
;
pobj
.
needNo
=
result
.
data
.
needNo
;
pobj
.
channelTypeCode
=
result
.
data
.
channelTypeCode
;
pobj
.
province
=
result
.
data
.
solutionProvince
;
//北京(新购)?
}
var
url
=
settings
.
centerChannelUrl
()
+
"/api/opreceive/accessAuth/springBoard"
;
var
url
=
settings
.
centerChannelUrl
()
+
"/api/opreceive/accessAuth/springBoard"
;
var
userpinResultTmp
=
await
this
.
execlient
.
execPostTK
(
userparam
,
url
,
tokenInfo
.
data
.
token
);
var
userpinResultTmp
=
await
this
.
execlient
.
execPostTK
(
userparam
,
url
,
tokenInfo
.
data
.
token
);
if
(
userpinResultTmp
.
status
!=
0
)
{
if
(
userpinResultTmp
.
status
!=
0
)
{
return
{
return
{
"requestId"
:
result
.
requestId
,
"requestId"
:
userpinResultTmp
.
requestId
,
"success"
:
false
,
"success"
:
false
,
"errorMsg"
:
result
.
msg
,
"errorMsg"
:
userpinResultTmp
.
msg
,
"errorCode"
:
"ok"
"errorCode"
:
"ok"
};
};
}
}
// icpNotify
// icpNotify
var
url
=
settings
.
centerChannelUrl
()
+
"/api/opreceive/need/springBoard"
;
var
url
=
settings
.
centerChannelUrl
()
+
"/api/opreceive/need/springBoard"
;
pobj
.
publishMobile
=
result
.
data
.
publishMobile
;
pobj
.
channelNeedNo
=
result
.
data
.
channelNeedNo
;
pobj
.
needNo
=
result
.
data
.
needNo
;
pobj
.
channelTypeCode
=
result
.
data
.
channelTypeCode
;
pobj
.
province
=
result
.
data
.
solutionProvince
;
var
sobj
=
{
var
sobj
=
{
"actionType"
:
"icpNotify"
,
"actionType"
:
"icpNotify"
,
"actionBody"
:
pobj
"actionBody"
:
pobj
...
...
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