Commit b520c97f by 杨树贤

修改数据返回

parent 4bcdf16c
APP_ENV=local APP_ENV=local
APP_DEBUG=true APP_DEBUG=true
APP_KEY= APP_KEY=
APP_TIMEZONE=UTC APP_TIMEZONE=PRC
SYSTEM_CODE=09 SYSTEM_CODE=09
SYSTEM_NAME=商品Api SYSTEM_NAME=福利中心Api
ELK_NAME=ic_welfare_api ELK_NAME=ic_welfare_api
BaseUrl=http://192.168.10.10:61009 BaseUrl=http://192.168.10.10:61009
......
...@@ -48,12 +48,12 @@ class AssistsController extends Controller ...@@ -48,12 +48,12 @@ class AssistsController extends Controller
$userExchangeService = new UserExchangeService(); $userExchangeService = new UserExchangeService();
$userExchange = array_get($userExchangeService->getUserExchange(['id' => $exchangeId]), 'data'); $userExchange = array_get($userExchangeService->getUserExchange(['id' => $exchangeId]), 'data');
$result['data']['amount'] = array_get($userExchange, 'amount', '0'); $result['data']['amount'] = array_get($userExchange, 'amount', '0');
$temp = array_get($userExchange,'user_id'); $temp = array_get($userExchange, 'user_id');
$user = $this->service->getUserInfo($temp); $user = $this->service->getUserInfo($temp);
$result['data']['user_info'] = [ $result['data']['user_info'] = [
'avatar' => array_get($user, 'avatar'), 'avatar' => array_get($user, 'avatar', ''),
'company_name' => array_get($user, 'company_name', $user['mobile']), 'company_name' => array_get($user, 'company_name', $user['mobile']),
'user_id' => array_get($user, 'user_id', ''), 'user_id' => array_get($user, 'user_id', ''),
]; ];
$needAssistCount = 2; $needAssistCount = 2;
$result['data']['need_assist_count'] = $needAssistCount - count($list); $result['data']['need_assist_count'] = $needAssistCount - count($list);
......
<?php
namespace App\Services;
class QRCodeService
{
}
\ No newline at end of file
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