完整版V1 加入爬虫功能
This commit is contained in:
@@ -127,7 +127,7 @@ class Ticket extends Model
|
||||
$total = (int) ($data['ticket_total'] ?? 0);
|
||||
$complete = (int) ($data['complete_count'] ?? 0);
|
||||
if ($total <= 0) {
|
||||
return '—';
|
||||
return '0%';
|
||||
}
|
||||
$percent = round($complete / $total * 100, 2);
|
||||
return $percent . '%';
|
||||
@@ -163,6 +163,9 @@ class Ticket extends Model
|
||||
if ($status === 'success') {
|
||||
return sprintf((string) __('Sync display success'), $online);
|
||||
}
|
||||
if ($status === 'pending') {
|
||||
return (string) __('Sync display pending');
|
||||
}
|
||||
return (string) __('Sync display error');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user