Files
fdesk/app/command/TbCommand.php
T

36 lines
911 B
PHP
Raw Normal View History

2025-07-29 09:00:04 +08:00
<?php
namespace app\command;
use app\common\model\User;
use app\common\model\UserSn;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use support\Db;
2025-08-04 14:03:57 +08:00
use app\common\utils\email\Emails;
2025-07-29 09:00:04 +08:00
2025-08-04 14:03:57 +08:00
/**
* 批量处理用户编号(也用于调试)
*/
2025-07-29 09:00:04 +08:00
class TbCommand extends Command
{
protected static $defaultName = 'tb-db';
protected static $defaultDescription = '';
protected function execute(InputInterface $input, OutputInterface $output): int
{
2025-08-04 14:03:57 +08:00
// $user = new User();
// $list = $user->all();
2025-07-29 09:00:04 +08:00
2025-08-04 14:03:57 +08:00
// foreach ($list as $item) {
// // UserSn::where('user_sn', $item->sn)->update(['user_id' => $item->id]);
// }
$m = new Emails();
2025-08-04 18:11:44 +08:00
$m->fenpai();
2025-08-04 14:03:57 +08:00
2025-07-29 09:00:04 +08:00
return self::SUCCESS;
}
}