|
@@ -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]);
|