|
@@ -103,7 +103,7 @@ class ApiController extends Controller
|
|
if(empty($res)) {
|
|
if(empty($res)) {
|
|
return response()->json(['status' => 'fail', 'info' => '创建失败']);
|
|
return response()->json(['status' => 'fail', 'info' => '创建失败']);
|
|
}
|
|
}
|
|
- return response()->json(['status' => 'success', 'info' => '操作成功']);
|
|
|
|
|
|
+ return response()->json(['status' => 'success', 'check_card_id' => $res->id, 'info' => '操作成功']);
|
|
}
|
|
}
|
|
|
|
|
|
public function endCheckCard(Request $request)
|
|
public function endCheckCard(Request $request)
|
|
@@ -117,6 +117,6 @@ class ApiController extends Controller
|
|
return response()->json(['status' => 'fail', 'info' => '打卡失败']);
|
|
return response()->json(['status' => 'fail', 'info' => '打卡失败']);
|
|
}
|
|
}
|
|
|
|
|
|
- return response()->json(['status' => 'success', 'info' => '操作成功']);
|
|
|
|
|
|
+ return response()->json(['status' => 'success', 'info' => '打卡成功']);
|
|
}
|
|
}
|
|
}
|
|
}
|