|
@@ -500,13 +500,19 @@ class Timedtask
|
|
|
|
|
|
public function createVirChildren()
|
|
|
{
|
|
|
- $list = Db::name('store_member')->field('id')->where('is_vir',1)->where('pid',0)->order('id asc')->limit(0,5)->select();
|
|
|
+ $list = Db::name('store_member')->field('id')->where('is_vir',1)->where('pid',0)->order('id asc')->select();
|
|
|
$pre = [1994,1782,1853,1332,1558,1392,1343,1595,1886,1866];
|
|
|
$password = '920211ming';
|
|
|
$second_password = '920211';
|
|
|
- foreach ($list as $v)
|
|
|
+ foreach ($list as $k=>$v)
|
|
|
{
|
|
|
- $num = rand(100,300);
|
|
|
+ if($k <= 4){
|
|
|
+ $num = rand(40,80);
|
|
|
+ }else if($k<12){
|
|
|
+ $num = rand(10,30);
|
|
|
+ }else{
|
|
|
+ $num = rand(3,15);
|
|
|
+ }
|
|
|
$array =[];
|
|
|
for ($i=0;$i<$num;$i++){
|
|
|
$rand_key = rand(0,9);
|