同步状态调整

This commit is contained in:
jianghanbo 2024-09-12 22:46:16 +08:00
parent 90f00dd215
commit f4104a97ab
2 changed files with 3 additions and 3 deletions

View File

@ -317,7 +317,7 @@ class SpiderMt extends Command
{ {
foreach (Orders::OSS as $k => $os) { foreach (Orders::OSS as $k => $os) {
$pages = 10; $pages = 20;
$page = 1; $page = 1;
while (true) { while (true) {

View File

@ -15,9 +15,9 @@ class Orders {
{ {
// 根据 OrdersModel::AllOssStatusSql[1] 进行判断 // 根据 OrdersModel::AllOssStatusSql[1] 进行判断
// ((os=1 and order_status=3) or (os=2 and order_status=4) or (os=3 and order_status=1)) // ((os=1 and order_status=3) or (os=2 and order_status=4) or (os=3 and order_status=1))
return ($order->os == 1 && $order->order_status == 3) return (in_array($order->os, [1, 7]) && $order->order_status == 3)
|| ($order->os == 2 && $order->order_status == 4) || ($order->os == 2 && $order->order_status == 4)
|| ($order->os == 3 && in_array($order->order_status, [1, 5])); || (in_array($order->os, [3, 5]) && in_array($order->order_status, [1, 5]));
} }
/** /**