wang hou sheng 7 months ago
parent dab573a3ee
commit 17c469fa19
  1. 3
      app/api/model/Order.php

@ -115,9 +115,10 @@ class Order extends OrderModel
// 设置订单类型条件
$dataTypeFilter = $this->getFilterDataType($dataType);
//判断当前用户身份
$userId = UserService::getCurrentLoginUserId();
$where = [];
if (!UserService::isStore()) {
$where['user_id'] = UserService::getCurrentLoginUserId();
$where['user_id'] = $userId;
}
// 当前用户ID
$query = $this->with(['goods.image']);

Loading…
Cancel
Save