xieruidong %!s(int64=2) %!d(string=hai) anos
pai
achega
4d780cf501
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      application/common/service/PayTransPerSvc.php

+ 2 - 1
application/common/service/PayTransPerSvc.php

@@ -3,13 +3,14 @@ namespace app\common\service;
 
 
 use app\common\model\User;
+use app\common\model\ViewUnique;
 use think\Cache;
 
 class PayTransPerSvc{
     protected static $configName='user_page_view_unique';
     public static function add(User $user){
         return Cache::remember(sprintf('user_view_page_%d_%s',$user->id,date('Y-m-d')),function (){
-
+            ViewUnique::add();
             return redis()->incr(self::$configName);
         },86400);
     }