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
875411d1
Commit
875411d1
authored
Mar 19, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
de693421
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
xgg-admin/app/base/controller/impl/order/orderCtl.js
+7
-6
xgg-admin/app/base/system.js
+4
-4
xgg-admin/app/front/entry/public/apidoc/order/order.md
+2
-2
No files found.
xgg-admin/app/base/controller/impl/order/orderCtl.js
View file @
875411d1
...
...
@@ -357,18 +357,19 @@ class OrderCtl extends CtlBase {
if
(
!
pobj
.
product_id
)
{
return
system
.
getResult
(
null
,
`参数错误 订单ID不能为空`
);
}
if
(
!
pobj
.
source_id
)
{
return
system
.
getResult
(
null
,
`参数错误 来源ID不能为空`
);
}
if
(
!
pobj
.
source_no
)
{
return
system
.
getResult
(
null
,
`参数错误 来源订单号不能为空`
);
}
//
if (!pobj.source_id) {
//
return system.getResult(null, `参数错误 来源ID不能为空`);
//
}
//
if (!pobj.source_no) {
//
return system.getResult(null, `参数错误 来源订单号不能为空`);
//
}
if
(
!
pobj
.
contact_mobile
)
{
return
system
.
getResult
(
null
,
`参数错误 联系电话不能为空`
);
}
if
(
!
pobj
.
customer_name
)
{
return
system
.
getResult
(
null
,
`参数错误 客户名称不能为空`
);
}
pobj
.
source_id
=
pobj
.
source_id
||
'1001'
;
pobj
.
notes
=
pobj
.
desc
||
"工商注册,刻章,银行卡户,税务报到"
;
try
{
return
await
this
.
orderSve
.
addSourceOrder
(
pobj
);
...
...
xgg-admin/app/base/system.js
View file @
875411d1
...
...
@@ -182,12 +182,12 @@ class System {
// merchant: "http://127.0.0.1:3101" + path,
// 订单服务
order
:
domain
+
":3103"
+
path
,
//
order: "http://127.0.0.1:3103" + path,
//
order: domain + ":3103" + path,
order
:
"http://127.0.0.1:3103"
+
path
,
// 发票服务
invoice
:
domain2
+
":3105"
+
path
,
//
invoice: "http://127.0.0.1:3105" + path,
//
invoice: domain2 + ":3105" + path,
invoice
:
"http://127.0.0.1:3105"
+
path
,
// 用户中心
uc
:
domain
+
":3106"
+
path
,
...
...
xgg-admin/app/front/entry/public/apidoc/order/order.md
View file @
875411d1
...
...
@@ -649,8 +649,8 @@
```
javascript
{
"product_id"
:
"10010000"
,
//产品ID 必填 工商注册一体化请传"10010000"
"source_id"
:
"1001"
,
//来源ID
必填
单页面录入 "1001"
"source_no"
:
"1567514119003310"
//来源订单号
必填 单页面录入 当前时间戳
"source_id"
:
"1001"
,
//来源ID
非必填
单页面录入 "1001"
"source_no"
:
"1567514119003310"
//来源订单号
非必填
"contact_mobile"
:
"133836395"
,
//联系电话 必填
"customer_name"
:
"1200"
,
//客户名称 必填
"desc"
:
"1567514119003310"
//产品信息 非必填 默认 "工商注册,刻章,银行卡户,税务报到"
...
...
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