Commit 9ba5a04d authored by G2700's avatar G2700

api fix

parent eb07681c
......@@ -47,7 +47,7 @@ class LocationController extends Controller
public function pullclothes(Request $request){
$age = $request->input('age');
$temperature = $request->input('temperature');
if(!empty($request->input('gender'))){
if(!empty($request->input('gender')) && $age >= 18 && $age <= 70){
$gender = $request->input('gender');
}
else {
......
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 to comment