更新
This commit is contained in:
@@ -159,6 +159,20 @@ class DiagnosisController extends BaseAdminController
|
||||
$result = DiagnosisLogic::checkIdCard($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 补全身份证号(自动计算年龄并更新)
|
||||
* @return \think\response\Json
|
||||
*/
|
||||
public function fillIdCard()
|
||||
{
|
||||
$params = (new DiagnosisValidate())->post()->goCheck('fillIdCard');
|
||||
$result = DiagnosisLogic::fillIdCard($params);
|
||||
if ($result) {
|
||||
return $this->success('补全成功,年龄已自动更新', [], 1, 1);
|
||||
}
|
||||
return $this->fail(DiagnosisLogic::getError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 指派医助
|
||||
|
||||
Reference in New Issue
Block a user