| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- declare (strict_types=1);
- namespace app\command;
- use app\common\repositories\store\order\StoreGroupOrderRepository;
- use app\common\repositories\store\order\StoreOrderRepository;
- use think\console\Command;
- use think\console\Input;
- use think\console\Output;
- use think\facade\Db;
- class repairPaySuccess extends Command
- {
- protected function configure()
- {
- // 指令配置
- $this->setName('repairPaySuccess')
- ->setDescription('修复支付成功后数据');
- }
- /**
- * @param Input $input
- * @param Output $output
- * @return void
- */
- protected function execute(Input $input, Output $output)
- {
- $orderSn = 'wx1744285736344558050';
- $groupOrder = app()->make(StoreGroupOrderRepository::class)->getWhere(['group_order_sn' => $orderSn]);
- app()->make(StoreOrderRepository::class)->paySuccess($groupOrder,1);
- $output->writeln('执行结束');
- }
- }
|