处理代发订单的错误

This commit is contained in:
luofei 2024-02-04 09:22:51 +08:00
parent d17cd4353b
commit 15d886e0d4
2 changed files with 3 additions and 1 deletions

View File

@ -2420,6 +2420,9 @@ class StoreOrderRepository extends BaseRepository
public function childrenList($id, $merId)
{
$data = $this->dao->get($id);
if (empty($data)) {
return [];
}
$query = $this->dao->getSearch([])->with(['orderProduct'])->where('order_id', '<>', $id);
if ($merId) $query->where('mer_id', $merId);
if ($data['main_id']) {

View File

@ -478,7 +478,6 @@ class Order extends BaseController
public function childrenList($id)
{
return app('json')->success([]);
$data = $this->repository->childrenList($id, $this->request->merId());
return app('json')->success($data);
}