优化:Give_Gift 表查询处理

This commit is contained in:
2026-01-12 19:57:37 +08:00
parent f45b60c9d3
commit 323c800751
2 changed files with 2 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ class Statistical extends adminApi
strtotime($end_time)
);
if(empty($tables)){
$tables = "vs_give_gift";
$tables = "fa_vs_give_gift";
}
$table_name = substr($tables[0], 3);//截取可查询的表名

View File

@@ -95,7 +95,7 @@ class Gift extends Model
//数组排序fa_vs_give_gift_202601 表明数字大的排在前面
arsort($tables);
if(empty($tables)){
$tables[0] = "vs_give_gift";
$tables[0] = "fa_vs_give_gift";
}
$gift_count = 0;
$gift_total_price = 0;