Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6d3fd061
authored
Aug 19, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整审单校验
parent
b478f387
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
app/Http/Controllers/OrderController.php
app/Http/Controllers/OrderController.php
View file @
6d3fd061
...
@@ -909,6 +909,8 @@ Class OrderController extends Controller
...
@@ -909,6 +909,8 @@ Class OrderController extends Controller
$pingtai_id
=
Config
(
'config.pingtai_id'
);
$pingtai_id
=
Config
(
'config.pingtai_id'
);
foreach
(
$resData
[
'change_info'
]
as
$v
)
{
foreach
(
$resData
[
'change_info'
]
as
$v
)
{
if
(
$v
[
'status'
]
==
-
1
)
continue
;
if
(
$v
[
'buyer_id'
]
==
$pingtai_id
)
{
if
(
$v
[
'buyer_id'
]
==
$pingtai_id
)
{
$client
=
new
\Hprose\Http\Client
(
Config
(
'website.footstone_url'
)
.
'/service'
,
false
);
$client
=
new
\Hprose\Http\Client
(
Config
(
'website.footstone_url'
)
.
'/service'
,
false
);
...
@@ -928,12 +930,12 @@ Class OrderController extends Controller
...
@@ -928,12 +930,12 @@ Class OrderController extends Controller
// 判断库存
// 判断库存
if
(
!
$goods_info
[
'stock'
]
||
$goods_info
[
'stock'
]
<
$v
[
'goods_number'
])
{
if
(
!
$goods_info
[
'stock'
]
||
$goods_info
[
'stock'
]
<
$v
[
'goods_number'
])
{
return
[
'errcode'
=>-
1
,
'errmsg'
=>
'请求基石库存接口,'
.
$v
[
'goods_name'
]
.
'型号库存不足,当前库存为'
.
$goods_info
[
'stock'
]];
return
[
'errcode'
=>-
1
,
'errmsg'
=>
'请求基石库存接口,'
.
$v
[
'goods_name'
]
.
'型号库存不足,当前
商品
库存为'
.
$goods_info
[
'stock'
]];
}
}
// 判断倍数
// 判断倍数
if
(
$v
[
'goods_number'
]
%
$goods_info
[
'mpl'
]
!=
0
)
{
if
(
$v
[
'goods_number'
]
%
$goods_info
[
'mpl'
]
!=
0
)
{
return
[
'errcode'
=>-
1
,
'errmsg'
=>
'请求基石库存接口,'
.
$v
[
'goods_name'
]
.
'型号倍数不满足下单条件,当前倍数为'
.
$goods_info
[
'mpl'
]];
return
[
'errcode'
=>-
1
,
'errmsg'
=>
'请求基石库存接口,'
.
$v
[
'goods_name'
]
.
'型号倍数不满足下单条件,当前
商品
倍数为'
.
$goods_info
[
'mpl'
]];
}
}
}
}
}
}
...
...
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