优化:管理后台 用户列表 输出关系绑定信息
This commit is contained in:
parent
c5303a92cd
commit
336db39b0b
|
|
@ -88,7 +88,18 @@ class User extends BaseController
|
|||
'is_svip',
|
||||
]);
|
||||
[$page, $limit] = $this->getPage();
|
||||
return app('json')->success($this->repository->getList($where, $page, $limit));
|
||||
$result = $this->repository->getList($where, $page, $limit);
|
||||
// 循环处理数据
|
||||
$config = systemConfig(['extension_limit', 'extension_limit_day']);
|
||||
foreach($result['list'] as &$userInfo){
|
||||
$userInfo['is_temporary'] = 0;
|
||||
if($config['extension_limit'] && $config['extension_limit_day'] && $userInfo['spread_limit'] && $userInfo['spread_fixed'] == 0) {
|
||||
$userInfo['is_temporary'] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return app('json')->success($result);
|
||||
}
|
||||
|
||||
public function spreadList($uid)
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ class User extends BaseController
|
|||
$uid = $this->request->uid();
|
||||
$result = $level == 2 ? $this->repository->getTwoLevelList($uid,$where,$page,$limit) : $this->repository->getOneLevelList($uid,$where,$page,$limit);
|
||||
// 循环处理数据
|
||||
$config = systemConfig(['extension_limit', 'extension_limit_day', 'integral_user_give']);
|
||||
$config = systemConfig(['extension_limit', 'extension_limit_day']);
|
||||
foreach($result['list'] as &$spreadInfo){
|
||||
$spreadInfo['is_temporary'] = 0;
|
||||
if($config['extension_limit'] && $config['extension_limit_day'] && $spreadInfo['spread_limit'] && $spreadInfo['spread_fixed'] == 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue