文件
yjyf/scripts/sync_completed_orders.php
YuanWen 68ac7876fd chore: 优化上传分类规则并新增分享功能
- 新增上传分类归一化处理,统一白名单校验规则
- 新增COS存储记录同步逻辑
- 新增分享功能支持,配置多页面分享参数
- 新增订单案例分享按钮
- 新增订单自动校验和回收命令
- 新增测试脚本和图片同步脚本
- 优化后台上传分类配置,统一分类映射
2026-11-07 09:54:41 +08:00

22 行
518 B
PHP

<?php
define('APP_PATH', __DIR__ . '/../server/application/');
require __DIR__ . '/../server/thinkphp/base.php';
\think\App::initCommon();
use think\Db;
$now = time();
$targetIds = [106, 108, 113, 120];
foreach ($targetIds as $id) {
Db::name('order')->where('id', $id)->update([
'status' => 8,
'finish_time' => $now - rand(1800, 7200),
'verify_time' => $now - rand(600, 1800),
'updatetime' => $now
]);
}
echo "Successfully updated orders to status 8 (COMPLETED).\n";