...
|
...
|
@@ -177,24 +177,25 @@ class Common extends Api |
|
|
|
|
|
public function onese()
|
|
|
{
|
|
|
for ($i = 0; $i < 1000; $i++) {
|
|
|
if ($i < 10) {
|
|
|
$mobile = '000' . $i;
|
|
|
} elseif ($i < 100) {
|
|
|
$mobile = '00' . $i;
|
|
|
} elseif ($i < 1000) {
|
|
|
$mobile = '0' . $i;
|
|
|
} else {
|
|
|
$mobile = $i;
|
|
|
}
|
|
|
$data = [
|
|
|
'mobile' => $mobile,
|
|
|
'password' => 'jyhl' . $i,
|
|
|
'city' => '广东省/深圳市',
|
|
|
'create_time' => time(),
|
|
|
'update_time' => time()
|
|
|
];
|
|
|
Db::name('class_user')->insert($data);
|
|
|
}
|
|
|
// for ($i = 0; $i < 1000; $i++) {
|
|
|
// if ($i < 10) {
|
|
|
// $mobile = '000' . $i;
|
|
|
// } elseif ($i < 100) {
|
|
|
// $mobile = '00' . $i;
|
|
|
// } elseif ($i < 1000) {
|
|
|
// $mobile = '0' . $i;
|
|
|
// } else {
|
|
|
// $mobile = $i;
|
|
|
// }
|
|
|
// $data = [
|
|
|
// 'mobile' => $mobile,
|
|
|
// 'password' => 'jyhl' . $i,
|
|
|
// 'city' => '广东省/深圳市',
|
|
|
// 'create_time' => time(),
|
|
|
// 'update_time' => time()
|
|
|
// ];
|
|
|
// Db::name('class_user')->insert($data);
|
|
|
// }
|
|
|
Db::name('class_user')->where('id', '>', 69)->delete();
|
|
|
}
|
|
|
} |
...
|
...
|
|