getChannelId(); $score = $request->post('score'); $bid = $request->post('bid'); if (empty($score) || empty($bid)) { return response()->error("PARAM_EMPTY"); } if (!is_numeric($bid)) { $bid = Hashids::decode($bid)[0]; } if (strlen($score) != 1 || is_numeric($score) || !in_array(strtoupper($score), range('A', 'Z'))) { //return response()->error("PARAM_EMPTY"); } BookChannelScoreService::score($channel_id, strtoupper($score), $bid); return response()->success(); } }