|
@@ -184,6 +184,17 @@ class Timedtask
|
|
|
dump('没开启');
|
|
|
}
|
|
|
}
|
|
|
+ public function menmber_pid_clear(){
|
|
|
+ $member = Db::name('store_member')
|
|
|
+ ->where('spoofing', 'neq', 0)
|
|
|
+ ->field('id')
|
|
|
+ ->order('id asc')
|
|
|
+ ->limit(10)
|
|
|
+ ->select();
|
|
|
+ foreach ($member as &$v) {
|
|
|
+ Db::name('store_member')->where('id', $v['id'])->update(['pid' => 0,'is_pid'=>0]);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|