Commit 4cda14e4 by 赵增煜

修改年龄格式判断

parent db57011b
...@@ -120,7 +120,7 @@ public function update(Request $request) ...@@ -120,7 +120,7 @@ public function update(Request $request)
return $this->failed('身份证格式错误'); return $this->failed('身份证格式错误');
} }
if (is_int($age) || $age <= 0) { if (intval($age) <= 0) {
return $this->failed('年龄格式错误'); return $this->failed('年龄格式错误');
} }
......
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