分页逻辑调整
This commit is contained in:
parent
42e4dcd44b
commit
923abf457a
|
@ -396,7 +396,7 @@ class SpiderDy extends Command
|
|||
}
|
||||
|
||||
// 数据小于50, 结束
|
||||
if (count($list) < 50) {
|
||||
if (empty($list)) {
|
||||
break;
|
||||
}
|
||||
$page++;
|
||||
|
|
|
@ -161,7 +161,7 @@ class SpiderMt extends Command
|
|||
}
|
||||
|
||||
if ($orderid) {
|
||||
//$this->reloadStatus($orderid, $os, $output);
|
||||
$this->reloadStatus($orderid, $os, $output);
|
||||
}
|
||||
|
||||
// $this->checks($output);
|
||||
|
@ -416,7 +416,7 @@ class SpiderMt extends Command
|
|||
}
|
||||
|
||||
// 数据小于50, 结束
|
||||
if (count($list) < 50) {
|
||||
if (empty($list)) {
|
||||
break;
|
||||
}
|
||||
$page++;
|
||||
|
@ -441,6 +441,7 @@ class SpiderMt extends Command
|
|||
$item = Orders::where($w)->find();
|
||||
if (empty($item)) {
|
||||
$output->writeln('没有找到订单');
|
||||
return;
|
||||
}
|
||||
$it = null;
|
||||
switch ($item->os) {
|
||||
|
|
|
@ -192,7 +192,7 @@ class SpiderTc extends Command
|
|||
private function orders($start = null, $end = null, $order_id = false)
|
||||
{
|
||||
foreach (Orders::OSS as $k => $os) {
|
||||
$pages = 6;
|
||||
$pages = 10;
|
||||
$page = 1;
|
||||
while (true) {
|
||||
if ($page > $pages) break;
|
||||
|
@ -261,7 +261,7 @@ class SpiderTc extends Command
|
|||
}
|
||||
|
||||
// 数据小于50, 结束
|
||||
if (count($list) < 50) {
|
||||
if (empty($list)) {
|
||||
break;
|
||||
}
|
||||
$page++;
|
||||
|
|
Loading…
Reference in New Issue