Commit 80de6754 by 杨树贤

修改获取兑换信息

parent 76bca39e
Showing with 5 additions and 1 deletions
......@@ -21,9 +21,13 @@ class ExchangeSettingService
//先去获取用户是否有正卡着好友助力的兑换记录
$map = [
'user_id' => $userId,
'type' => 2,
'page_size' => 1,
];
$userExchangeService = new UserExchangeService();
$userExchange = array_get($userExchangeService->getUserExchange($map), 'data', []);
$userExchange = array_get($userExchangeService->getUserExchangeList($map), 'data', []);
$userExchange = array_get($userExchange,0);
dd($userExchange);
//如果最后一条记录是未审核就代表这个需要好友助力
$info = [];
$info['exchanging'] = $info['assist_count'] = $info['exchange_id'] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment