抖音增加平台

This commit is contained in:
jianghanbo 2024-08-16 22:16:23 +08:00
parent 4714f4a45a
commit faa377a462
2 changed files with 37 additions and 3 deletions

View File

@ -331,6 +331,15 @@ class SpiderDy extends Command
break;*/ break;*/
case 3: case 3:
// echo '==========pages='.$pages;
try {
$dou = new Douyin($k);
$list = $dou->get($page, $start, $end, '', $k);
$pages = $dou->totalPage;
} catch (\Exception $e) {
Log::error(dirname(__FILE__) . __LINE__ . $e);
}
break;
case 5: case 5:
// echo '==========pages='.$pages; // echo '==========pages='.$pages;
try { try {
@ -434,6 +443,9 @@ class SpiderDy extends Command
$it = $m->get(1, null, null, $item->sn); $it = $m->get(1, null, null, $item->sn);
break;*/ break;*/
case 3: case 3:
$m = new Douyin($item->os);
$it = $m->get(1, null, null, $item->sn, $item->os);
break;
case 5: case 5:
$m = new Douyin($item->os); $m = new Douyin($item->os);
$it = $m->get(1, null, null, $item->sn, $item->os); $it = $m->get(1, null, null, $item->sn, $item->os);

View File

@ -96,6 +96,21 @@ class Orders {
break; break;
case 3: case 3:
$dy = new Douyin($order->os);
$it = $dy->get(1, null, null, $order->sn, $order->os);
if ($it) {
$got = $it[0];
// 查询未预约状态
if ($order->appointment_status != 1) {
$appointment_status = $dy->_orderMakeAppointmentStatus($order->sn);
if ($appointment_status !== null) {
$got['appointment_status'] = 1;
}
}
}
break;
case 5: case 5:
$dy = new Douyin($order->os); $dy = new Douyin($order->os);
$it = $dy->get(1, null, null, $order->sn, $order->os); $it = $dy->get(1, null, null, $order->sn, $order->os);
@ -176,10 +191,17 @@ class Orders {
} }
break; break;
case 3:
case 5: case 5:
$dy = new Douyin($order->os); $dy = new Douyin($order->os);
$it = $dy->get(1, null, null, $order->sn); $it = $dy->get(1, null, null, $order->os);
if ($it) {
$got = $it[0];
}
break;
case 3:
$dy = new Douyin($order->os);
$it = $dy->get(1, null, null, $order->os);
if ($it) { if ($it) {
$got = $it[0]; $got = $it[0];
} }