Merge branch 'feature/mzl_dev'

This commit is contained in:
mzl
2025-08-04 14:03:57 +08:00
parent 8f74999b47
commit b2d4119e46
25 changed files with 2066 additions and 47 deletions
+13 -5
View File
@@ -9,7 +9,11 @@ use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use support\Db;
use app\common\utils\email\Emails;
/**
* 批量处理用户编号(也用于调试)
*/
class TbCommand extends Command
{
protected static $defaultName = 'tb-db';
@@ -17,12 +21,16 @@ class TbCommand extends Command
protected function execute(InputInterface $input, OutputInterface $output): int
{
$user = new User();
$list = $user->all();
// $user = new User();
// $list = $user->all();
foreach ($list as $item) {
// UserSn::where('user_sn', $item->sn)->update(['user_id' => $item->id]);
}
// foreach ($list as $item) {
// // UserSn::where('user_sn', $item->sn)->update(['user_id' => $item->id]);
// }
$m = new Emails();
$m->process();
return self::SUCCESS;
}
}