diff --git a/app/Service/Api/Driver/BaseDriverService.php b/app/Service/Api/Driver/BaseDriverService.php index 72e03ca..5d605c4 100644 --- a/app/Service/Api/Driver/BaseDriverService.php +++ b/app/Service/Api/Driver/BaseDriverService.php @@ -86,7 +86,7 @@ abstract class BaseDriverService extends BaseService { parent::__construct(); - $this->cycleId = $this->initTodayCycleId(); + $this->cycleId = (int)$this->initTodayCycleId(); $this->adminInfo = $this->adminUserModel->getAdminInfoByBindUserId($this->userId); if ($this->adminInfo->role_id != RoleCode::DRIVER) throw new ErrException('暂无权限,请联系客服并提供相关信息绑定账号');