修改用户信息

This commit is contained in:
邹景立 2021-03-25 12:11:59 +08:00
parent 6d499d4add
commit 89abf2bcea
2 changed files with 4 additions and 2 deletions

View File

@ -132,6 +132,7 @@ class UserUpgradeService extends Service
]; ];
// 更新用户代理 // 更新用户代理
if ($this->app->db->name('DataUser')->where(['id' => $uid])->update($data) !== false) { if ($this->app->db->name('DataUser')->where(['id' => $uid])->update($data) !== false) {
$this->upgrade($uid);
return [1, '绑定代理成功']; return [1, '绑定代理成功'];
} else { } else {
return [0, '绑定代理失败']; return [0, '绑定代理失败'];

View File

@ -18,8 +18,8 @@
</th> </th>
<th class='nowrap'>用户信息</th> <th class='nowrap'>用户信息</th>
<th class='nowrap'>推荐人信息</th> <th class='nowrap'>推荐人信息</th>
<th class='nowrap'>余额返利</th> <th class='nowrap'>余额返利</th>
<th class='nowrap'>注册时间</th> <th class='nowrap'>用户状态</th>
<th class='nowrap'></th> <th class='nowrap'></th>
</tr> </tr>
</thead> </thead>
@ -72,6 +72,7 @@
<td class="nowrap sub-strong-blue"> <td class="nowrap sub-strong-blue">
<div>账户余额:累计充值 <b>{$vo.balance_total+0}</b> 元,已使用 <b>{$vo.balance_used+0}</b> 元,可用 <b>{:round($vo.balance_total-$vo.balance_used,2)+0}</b> </div> <div>账户余额:累计充值 <b>{$vo.balance_total+0}</b> 元,已使用 <b>{$vo.balance_used+0}</b> 元,可用 <b>{:round($vo.balance_total-$vo.balance_used,2)+0}</b> </div>
<div>返利奖励:累计返利 <b>{$vo.rebate_total+$vo.rebate_lock}</b> ( 含未到账 <b>{$vo.rebate_lock+0}</b> ) 已提现 <b>{$vo.rebate_used+0}</b> 元,可提现 <b>{:round($vo.rebate_total-$vo.rebate_used,2)+0}</b> </div> <div>返利奖励:累计返利 <b>{$vo.rebate_total+$vo.rebate_lock}</b> ( 含未到账 <b>{$vo.rebate_lock+0}</b> ) 已提现 <b>{$vo.rebate_used+0}</b> 元,可提现 <b>{:round($vo.rebate_total-$vo.rebate_used,2)+0}</b> </div>
<div>团队统计:直属团队 <b>{$vo.teams_users_direct}</b> 人,间接团队 <b>{$vo.teams_users_indirect}</b> 人,直属业绩 <b>{$vo.teams_amount_direct+0}</b> 元,间接业绩 <b>{$vo.teams_amount_indirect+0}</b> </div>
</td> </td>
<td class="nowrap"> <td class="nowrap">
使用状态:{if $vo.status eq 0}<b class="color-red margin-right-5">已冻结</b>{elseif $vo.status eq 1}<b class="color-green margin-right-5">已激活</b>{/if}<br> 使用状态:{if $vo.status eq 0}<b class="color-red margin-right-5">已冻结</b>{elseif $vo.status eq 1}<b class="color-green margin-right-5">已激活</b>{/if}<br>