|
|
@@ -19,7 +19,7 @@ class LogisticsService implements LogisticsInterface
|
|
|
$entity = $this->extensionWuLiuEntity->where('number', $number)->when($type, function (Model $query, $type) {
|
|
|
$query->where('type', $type);
|
|
|
})->findOrEmpty();
|
|
|
- if (!$entity->isEmpty() && ($entity->is_sign == 1 || $entity->update_time > time() - 600)) {
|
|
|
+ if (!$entity->isEmpty() && ($entity->is_sign == 1 || strtotime( $entity->update_time) > time() - 600)) {
|
|
|
// 已签收或10分钟内更新过,直接返回
|
|
|
} else {
|
|
|
$entity = $this->extensionWuLiuEntity->queryLogistics($number, $type, $entity);
|