完整版V1 加入爬虫功能
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
// 文件名: UnifiedScrmData.php
|
||||
|
||||
class UnifiedScrmData
|
||||
{
|
||||
public $todayNewCount = 0;
|
||||
public $totalOnline = 0;
|
||||
public $totalOffline = 0;
|
||||
public $numbers = []; // 号码列表
|
||||
public $total = 0; // 号码总数
|
||||
|
||||
public function addNumber($number, $isOnline, $newFollowersToday)
|
||||
{
|
||||
$this->numbers[] = [
|
||||
'number' => $number,
|
||||
'status' => $isOnline ? 'online' : 'offline',
|
||||
'newFollowersToday' => $newFollowersToday
|
||||
];
|
||||
|
||||
if ($isOnline) {
|
||||
$this->totalOnline++;
|
||||
} else {
|
||||
$this->totalOffline++;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user