zhangguidong 2 years ago
parent
commit
2f7647262f
1 changed files with 13 additions and 0 deletions
  1. 13 0
      application/api/controller/Timedtask.php

+ 13 - 0
application/api/controller/Timedtask.php

@@ -195,6 +195,19 @@ class Timedtask
             Db::name('store_member')->where('id', $v['id'])->update(['pid' => 0,'is_pid'=>0,'spoofing'=>66]);
         }
     }
+    public function member_invite(){
+        $member = Db::name('store_member')
+            ->where('accountName', 'neq', 18888888888)
+            ->where('invite_img', 'neq', '')
+            ->where('invite_address', 'neq', '')
+            ->field('id')
+            ->order('id asc')
+            ->limit(10)
+            ->select();
+        foreach ($member as &$v) {
+            Db::name('store_member')->where('id', $v['id'])->update(['invite_img' => '','invite_address'=>'']);
+        }
+    }