作者 王智

文档修改

@@ -892,7 +892,7 @@ class Update extends Api @@ -892,7 +892,7 @@ class Update extends Api
892 } 892 }
893 $UserArray = Db::name('user')->field('nickname')->order('id desc')->page(1, 50)->select(); 893 $UserArray = Db::name('user')->field('nickname')->order('id desc')->page(1, 50)->select();
894 $NickNameArray = array_column($UserArray, 'nickname'); 894 $NickNameArray = array_column($UserArray, 'nickname');
895 - dump($NickNameArray); 895 + dump($UserArray);
896 die; 896 die;
897 $rand_list = array_rand($NickNameArray, 30); 897 $rand_list = array_rand($NickNameArray, 30);
898 foreach ($rand_list as $key) { 898 foreach ($rand_list as $key) {