xxxrrrdddd 2 years ago
parent
commit
10cb5e9f1a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/common/model/Mobile.php

+ 1 - 1
application/common/model/Mobile.php

@@ -269,7 +269,7 @@ class Mobile extends Model
     }
     public function addViewCount(){
         $num=Cache::get($this->viewCountCacheName(),0);
-        Cache::set($this->viewCountCacheName(),$num+1);
+        Cache::set($this->viewCountCacheName(),++$num);
     }
     public function needCheckSmsCode(){
         return in_array($this['type'],[self::BEAUTI]);