Initial commit,修正

This commit is contained in:
2025-07-13 19:37:38 +08:00
parent 38ce288e27
commit 65bbd06981
12384 changed files with 3985464 additions and 8 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
/**
* User: lzkong1029
* Date: 2016-7-6
* Time: 15:10
* Description:静态公共函数类库
*/
namespace backend\components;
use backend\models\Log;
use Yii;
class Helper {
public static function hello(){
echo 'hello';
}
//历史访客数
public static function getHistoryVisNum(){
$res = Log::find()->count();
return $res;
}
//最近一个月访问量
public static function getMonthHistoryVisNum(){
$LastMonth = strtotime("-1 month");
$res = Log::find()->where(['>','create_time',$LastMonth])->count();
return $res;
}
}