Browse Source

首页统计

lizhen_gitee 1 year ago
parent
commit
420071f2b1

+ 4 - 4
application/admin/view/dashboard/index.html

@@ -14,7 +14,7 @@
                 <p>总流水</p>
             </div>
             <div class="icon">
-                <i class="fa fa-rmb"></i>
+                <i class="fa fa-diamond"></i>
             </div>
         </div>
     </div>
@@ -32,7 +32,7 @@
                 <p>所有房间数</p>
             </div>
             <div class="icon">
-                <i class="fa fa-rmb"></i>
+                <i class="fa fa-university"></i>
             </div>
         </div>
     </div>
@@ -57,7 +57,7 @@
                 <p>在线人数</p>
             </div>
             <div class="icon">
-                <i class="fa fa-rmb"></i>
+                <i class="fa fa-user-plus"></i>
             </div>
         </div>
     </div>
@@ -117,7 +117,7 @@
             </div>
 
             <div class="icon">
-                <i class="fa fa-rmb"></i>
+                <i class="fa fa-diamond"></i>
             </div>
         </div>
     </div>

+ 4 - 4
application/index/controller/Test.php

@@ -3,7 +3,7 @@
 namespace app\index\controller;
 
 use think\Controller;
-
+use Redis;
 use \GatewayWorker\Lib\Gateway;
 class Test extends Controller
 {
@@ -36,10 +36,10 @@ class Test extends Controller
             $redis->select($redisconfig['redis_selectdb']);
         }
 
+        $key = 'party_giveGiftToYou_180';
 
-        $party_id = 141;
-        $res = $redis->hGetAll("online_".$party_id);
-        dump($res);
+        $redis->incr($key);
+        $redis->pExpire($key, 100000);
     }