|
@@ -261,11 +261,11 @@ class Mobile extends Model
|
|
|
public function getViewCountAttr(){
|
|
|
return Cache::get($this->viewCountCacheName(),0);
|
|
|
}
|
|
|
- public function setActivityTimeEndAttr($a){
|
|
|
+/* public function setActivityTimeEndAttr($a){
|
|
|
if(!$a){
|
|
|
- $a=3;
|
|
|
+ return null;
|
|
|
}
|
|
|
- return time()+$a*60;
|
|
|
+ return strtotime($a);
|
|
|
}
|
|
|
public function addViewCount(){
|
|
|
$num=Cache::get($this->viewCountCacheName(),0);
|