提交
This commit is contained in:
@@ -88,7 +88,8 @@ final class CustomerCenter extends Base
|
||||
$result = (new CustomerCenterService())->applicant(
|
||||
$userId,
|
||||
$applicantId,
|
||||
(bool)$this->request->param('include_materials', false)
|
||||
(bool)$this->request->param('include_materials', false),
|
||||
(bool)$this->request->param('include_latest_evus_visa', false)
|
||||
);
|
||||
if ((int)($result['code'] ?? 0) !== 1) {
|
||||
return $this->fail((string)($result['msg'] ?? '服务异常,请稍后重试'));
|
||||
|
||||
@@ -30,11 +30,17 @@ final class CustomerCenterService
|
||||
]);
|
||||
}
|
||||
|
||||
public function applicant(int $userId, int $applicantId, bool $includeMaterials = false): array
|
||||
public function applicant(
|
||||
int $userId,
|
||||
int $applicantId,
|
||||
bool $includeMaterials = false,
|
||||
bool $includeLatestEvusVisa = false
|
||||
): array
|
||||
{
|
||||
return $this->request('applicant', $userId, [
|
||||
'applicant_id' => $applicantId,
|
||||
'include_materials' => $includeMaterials ? 1 : 0,
|
||||
'include_latest_evus_visa' => $includeLatestEvusVisa ? 1 : 0,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user