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
35212fb9
Commit
35212fb9
authored
Jul 07, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucommune console.log(setttings.ucommuneOperatorPhone())
parent
b97a208b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
center-channel/app/base/service/impl/utilsSve/utilsFqAliyunSve.js
+4
-1
center-channel/app/config/settings.js
+12
-5
No files found.
center-channel/app/base/service/impl/utilsSve/utilsFqAliyunSve.js
View file @
35212fb9
var
system
=
require
(
"../../../system"
);
var
system
=
require
(
"../../../system"
);
const
AppServiceBase
=
require
(
"../../app.base"
);
const
AppServiceBase
=
require
(
"../../app.base"
);
var
settings
=
require
(
"../../../../config/settings"
);
//此类用来db中配置来进行调用-主要功能是推送蜂擎业务
//此类用来db中配置来进行调用-主要功能是推送蜂擎业务
class
UtilsFqAliyunService
extends
AppServiceBase
{
class
UtilsFqAliyunService
extends
AppServiceBase
{
constructor
()
{
constructor
()
{
super
();
super
();
this
.
ucommuneOperatorPhone
=
settings
.
ucommuneOperatorPhone
()
}
}
async
pushOrderBusinessByProductCode2Fq
(
pobj
)
{
//推送自定义产品码的订单商机到峰擎(订单已经支付成功才推送)
async
pushOrderBusinessByProductCode2Fq
(
pobj
)
{
//推送自定义产品码的订单商机到峰擎(订单已经支付成功才推送)
var
verifyResult
=
await
this
.
verifyParam
(
pobj
);
var
verifyResult
=
await
this
.
verifyParam
(
pobj
);
...
@@ -31,6 +33,7 @@ class UtilsFqAliyunService extends AppServiceBase {
...
@@ -31,6 +33,7 @@ class UtilsFqAliyunService extends AppServiceBase {
}
}
var
interface_params_info
=
verifyResult
.
data
;
var
interface_params_info
=
verifyResult
.
data
;
console
.
log
(
"推送的业务员手机号为:"
,
this
.
ucommuneOperatorPhone
)
var
params
=
{
var
params
=
{
idempotentId
:
orderInfo
.
orderNo
,
// 是 业务 ID
idempotentId
:
orderInfo
.
orderNo
,
// 是 业务 ID
idempotentSource
:
productInfo
.
service_business_code
,
// 是 业务来源(ic_jdyun、ic_ali)
idempotentSource
:
productInfo
.
service_business_code
,
// 是 业务来源(ic_jdyun、ic_ali)
...
@@ -42,7 +45,7 @@ class UtilsFqAliyunService extends AppServiceBase {
...
@@ -42,7 +45,7 @@ class UtilsFqAliyunService extends AppServiceBase {
orderPrice
:
orderInfo
.
totalSum
,
// 是 订单金额
orderPrice
:
orderInfo
.
totalSum
,
// 是 订单金额
productId
:
productInfo
.
price_item
.
service_code
,
// 是 产品 ID
productId
:
productInfo
.
price_item
.
service_code
,
// 是 产品 ID
productQuantity
:
orderInfo
.
quantity
,
// 是 产品数量
productQuantity
:
orderInfo
.
quantity
,
// 是 产品数量
operator_phone
:
'13911391996'
,
// 2020 0704 推送fq 必填字段 这里以下为新增
operator_phone
:
this
.
ucommuneOperatorPhone
,
// 2020 0704 推送fq 必填字段 这里以下为新增 7.7修改由写死改为从settings获取
thirdPartyCustomerId
:
orderInfo
.
channelUserId
,
thirdPartyCustomerId
:
orderInfo
.
channelUserId
,
pay_flow_no
:
orderInfo
.
pay_flow_no
,
// 支付流水号
pay_flow_no
:
orderInfo
.
pay_flow_no
,
// 支付流水号
pay_channel
:
orderInfo
.
pay_channel
,
// 支付渠道(微信、支付宝)(必填)
pay_channel
:
orderInfo
.
pay_channel
,
// 支付渠道(微信、支付宝)(必填)
...
...
center-channel/app/config/settings.js
View file @
35212fb9
...
@@ -231,11 +231,18 @@ var settings = {
...
@@ -231,11 +231,18 @@ var settings = {
},
},
paySecret
:
function
()
{
paySecret
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
if
(
this
.
env
==
"dev"
)
{
// return "ab53dfb909e4c32a";
// return "ab53dfb909e4c32a";
return
"34cdecaac35b1d8d"
// 7.1之前测试环境的secret无法使用,测试/正式全部使用同一个secret
return
"34cdecaac35b1d8d"
// 7.1之前测试环境的secret无法使用,测试/正式全部使用同一个secret
}
else
{
}
else
{
return
"34cdecaac35b1d8d"
;
// 6.29lin新增 小黑给的secret
return
"34cdecaac35b1d8d"
;
// 6.29lin新增 小黑给的secret
}
}
},
ucommuneOperatorPhone
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"13911391996"
// 7.7修改测试环境优客 辅助/担保订单推送业务员手机号
}
else
{
return
"15754717260"
;
// 7.7修改正式环境优客 辅助/担保订单推送业务员手机号 刘文悦
}
}
}
};
};
module
.
exports
=
settings
;
module
.
exports
=
settings
;
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