房间送礼信息 和 进入小黑屋

This commit is contained in:
2026-01-07 20:12:49 +08:00
parent 92cf24a9dd
commit 3087e7aa6a
3 changed files with 366 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
<?php
// application/common/model/GiveGiftBase.php
// application/common/model/GiveGiftBases.php
namespace app\common\model;
@@ -276,7 +276,7 @@ class GiveGiftBase extends Model
$data = [];
if ($total > 0) {
$offset = ($options['page'] - 1) * $options['limit'];
$dataSql = "{$unionSql} ORDER BY {$options['order']} LIMIT {$offset}, {$options['limit']}";
$dataSql = "{$unionSql} ORDER BY {$options['order']} DESC LIMIT {$offset}, {$options['limit']}";
try {
$data = Db::query($dataSql, $params);