添加钻石收入

This commit is contained in:
youda 2025-05-17 18:17:38 +08:00
parent 011edb6d61
commit ea1da6f9c9
3 changed files with 246 additions and 217 deletions

View File

@ -158,7 +158,7 @@ class Diamond extends Base
// 更新数据
$result = DiamondProducts::edit($id, $param);
if ($result) {
if ($result !== false) {
return $this->succ('修改成功');
} else {
return $this->err('修改失败');

File diff suppressed because it is too large Load Diff

View File

@ -326,6 +326,10 @@
<td>RMB收入</td>
<td id="rmb_income">加载中...</td>
</tr>
<tr>
<td>钻石商城收入:</td>
<td id="diamond_income">加载中...</td>
</tr>
<tr>
<td>其他收入:</td>
<td id="other_income">加载中...</td>
@ -548,6 +552,7 @@
// 填充所有数据
$('#today_income').text(res.data.today_income);
$('#rmb_income').text(res.data.rmb_income);
$("#diamond_income").text(res.data.diamond_income)
$('#other_income').text(res.data.other_income);
$('#shipped_today').text(res.data.shipped_today);
$('#expenses').text(res.data.expenses);