Commit 9d9cd099 by 赵增煜

二维码数字判断

parent da37c3ec
...@@ -220,8 +220,8 @@ public function duplicate(Request $request) ...@@ -220,8 +220,8 @@ public function duplicate(Request $request)
$authInfo = auth('api')->user(); $authInfo = auth('api')->user();
// 确保传递了 ID 参数 // 确保传递了 ID 参数
if (! isset($data['id']) || empty($data['id'])) { if (! isset($data['id']) || empty($data['id']) || ! is_numeric($data['id'])) {
return $this->failed('ID 参数缺失'); return $this->failed('无效二维码');
} }
// 根据传递的 ID 查找对应患者数据 // 根据传递的 ID 查找对应患者数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment