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
a896429a
Commit
a896429a
authored
Feb 20, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
89ec2edc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
igirl-channel/app/base/api/impl/action/tmOrder.js
+15
-1
igirl-channel/app/base/service/impl/dborder/orderSve.js
+2
-1
No files found.
igirl-channel/app/base/api/impl/action/tmOrder.js
View file @
a896429a
...
...
@@ -72,8 +72,22 @@ class TmOrderAPI extends APIBase {
pobj
.
actionBody
.
channelOrder
.
orderStatus
=
2
;
//订单状态dfk: 1: 待付款, 2: 已付款, 4: 待服务, 8: 已完成
pobj
.
actionBody
.
channelOrder
.
buyerMoblie
=
pobj
.
actionBody
.
buyerMoblie
;
pobj
.
actionBody
.
channelOrder
.
email
=
pobj
.
actionBody
.
email
;
opResult
=
await
this
.
orderSve
.
addQifuOrder
(
pobj
,
pobj
.
actionBody
,
req
);
if
(
opResult
.
status
==
0
&&
opResult
.
serviceCode
&&
pobj
.
actionBody
.
buyerMoblie
)
{
pobj
.
actionBody
=
{
idempotentId
:
opResult
.
data
.
orderNo
,
// 是 业务 ID
idempotentSource
:
req
.
app
.
appSourceCode
?
"ic_"
+
req
.
app
.
appSourceCode
:
"tm_1688"
,
// 是 业务来源(ali、jd)
idempotentSourceName
:
req
.
app
.
name
||
"1688应用"
,
// 是 阿里,京东
city
:
""
,
// 否 所属城市
phone
:
pobj
.
actionBody
.
buyerMoblie
,
// 是 手机号
userId
:
pobj
.
actionBody
.
channelUserId
,
// 否 用户 ID
companyName
:
""
,
// 否 公司名称
orderPrice
:
opResult
.
totalSum
,
// 是 订单金额
productId
:
opResult
.
serviceCode
,
// 是 产品 ID
productQuantity
:
1
,
// 是 产品数量
};
await
this
.
orderSve
.
againPushFqBusiness
(
pobj
,
req
);
}
//推送商机到峰擎
break
;
case
"getOrderInfo"
:
opResult
=
await
this
.
orderSve
.
getOrderInfo
(
pobj
,
action_body
,
req
);
...
...
igirl-channel/app/base/service/impl/dborder/orderSve.js
View file @
a896429a
...
...
@@ -11,6 +11,7 @@ class OrderService extends ServiceBase {
this
.
receiptvoucherDao
=
system
.
getObject
(
"db.dborder.receiptvoucherDao"
);
this
.
customercontactsDao
=
system
.
getObject
(
"db.dborder.customercontactsDao"
);
this
.
execClient
=
system
.
getObject
(
"util.execClient"
);
//aliyunClient
// this.fqReqUrl = "https://yunfuapi.gongsibao.com";//线上域名
this
.
fqReqUrl
=
"https://yunfuapi-dev.gongsibao.com"
;
//dev域名
this
.
restClient
=
system
.
getObject
(
"util.restClient"
);
...
...
@@ -782,7 +783,7 @@ class OrderService extends ServiceBase {
});
}
}
async
getIcbcOrderDetails
(
pobj
,
req
)
{
//获取工商详情
async
getIcbcOrderDetails
(
pobj
,
req
)
{
//
通过峰擎阿里云接口
获取工商详情
var
rc
=
system
.
getObject
(
"util.aliyunClient"
);
var
rtn
=
null
;
var
reqUrl
=
this
.
fqReqUrl
+
"/bigData/ic/formDetail"
;
...
...
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