|
@@ -35,7 +35,7 @@ class Test extends Command
|
|
|
// }
|
|
|
|
|
|
while ($username<=1745219999){
|
|
|
- Db::startTrans();
|
|
|
+ // Db::startTrans();
|
|
|
$pasword = randomkeys(2).rand(1000,9999);
|
|
|
$salt = makeSalt();
|
|
|
$pas = sha1($pasword.$salt);
|
|
@@ -52,31 +52,32 @@ class Test extends Command
|
|
|
"updatetime"=>date("Y-m-d H:i:s")
|
|
|
];
|
|
|
$acccount = Db::name("account")->insert($data,false,true);
|
|
|
- if($acccount>0){
|
|
|
- $user=[
|
|
|
- "nickname"=>$username,
|
|
|
- "mobile"=>"",
|
|
|
- "avatar"=>"",
|
|
|
- "remark"=>"",
|
|
|
- "sex"=>"",
|
|
|
- "addtime"=>date("Y-m-d H:i:s"),
|
|
|
- "updatetime"=>date("Y-m-d H:i:s")
|
|
|
- ];
|
|
|
- $info = Db::name("account_info")->insert($user,false,true);
|
|
|
- if($info>0){
|
|
|
- $rela=["accountid"=>$acccount,"account_info"=>$info];
|
|
|
- $rela_acc=Db::name("rela_account")->insert($rela);
|
|
|
- if($rela_acc){
|
|
|
- write_log("账户{$username}新建成功","","account","add");
|
|
|
- Db::commit();
|
|
|
- $username++;
|
|
|
- continue;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- Db::rollback();
|
|
|
- break;
|
|
|
+ $username++;
|
|
|
+// if($acccount>0){
|
|
|
+// $user=[
|
|
|
+// "nickname"=>$username,
|
|
|
+// "mobile"=>"",
|
|
|
+// "avatar"=>"",
|
|
|
+// "remark"=>"",
|
|
|
+// "sex"=>"",
|
|
|
+// "addtime"=>date("Y-m-d H:i:s"),
|
|
|
+// "updatetime"=>date("Y-m-d H:i:s")
|
|
|
+// ];
|
|
|
+// $info = Db::name("account_info")->insert($user,false,true);
|
|
|
+// if($info>0){
|
|
|
+// $rela=["accountid"=>$acccount,"account_info"=>$info];
|
|
|
+// $rela_acc=Db::name("rela_account")->insert($rela);
|
|
|
+// if($rela_acc){
|
|
|
+// write_log("账户{$username}新建成功","","account","add");
|
|
|
+// Db::commit();
|
|
|
+// $username++;
|
|
|
+// continue;
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
+// }
|
|
|
+// Db::rollback();
|
|
|
+// break;
|
|
|
}
|
|
|
|
|
|
}
|