1
This commit is contained in:
parent
57bde2df4c
commit
97697e4882
@ -61,9 +61,11 @@ class BeforehandOrderCartInfoLogic extends BaseLogic
|
|||||||
public static function appendAdd(array $params): bool
|
public static function appendAdd(array $params): bool
|
||||||
{
|
{
|
||||||
$order = BeforehandOrder::where('id', $params['id'])->find();
|
$order = BeforehandOrder::where('id', $params['id'])->find();
|
||||||
if ((!empty($order) && $order->is_confirm == 1 && empty($params['admin_id'])) || $order['is_outbound'] > 0) {
|
if(empty($params['admin_id'])){
|
||||||
|
if ((!empty($order) && $order->is_confirm == 1 ) || $order['is_outbound'] > 0) {
|
||||||
throw new BusinessException('该订单已确认,不能追加商品');
|
throw new BusinessException('该订单已确认,不能追加商品');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Db::startTrans();
|
Db::startTrans();
|
||||||
try {
|
try {
|
||||||
$datas = [];
|
$datas = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user