diff --git a/app/common/dao/store/StoreActivityUserDao.php b/app/common/dao/store/StoreActivityUserDao.php index 24a090a4..0c1dbd03 100644 --- a/app/common/dao/store/StoreActivityUserDao.php +++ b/app/common/dao/store/StoreActivityUserDao.php @@ -124,10 +124,10 @@ class StoreActivityUserDao extends BaseDao ->where('activity_id', $activityId) ->where($myOrderWhere) ->find(); - $userInfo = User::where('spread_uid', $userId)->field('uid,nickname,avatar')->select()->toArray(); if (empty($myOrder) || empty($myOrder['pay_price'])) { return ['target' => $target, 'allow_receive' => false, 'user_info' => $userInfo]; } + $userInfo = User::where('spread_uid', $userId)->field('uid,nickname,avatar')->select()->toArray(); $storeConsumptionUserDao = new StoreConsumptionUserDao(); $scope = $storeConsumptionUserDao->getScope($consumption, $myOrder['pay_price']); $orderQuery = StoreActivityOrder::where('spread_id', $userId)