@@ -221,7 +221,9 @@ class Mobile extends Model
}
#设置为非活动
public function makeNotActivity(){
- $this['is_activity']=0;
- $this->save();
+ if($this['is_activity'] && $this['activity_time_end']<time()) {
+ $this['is_activity'] = 0;
+ $this->save();
+ }