no message

Mix
鹿和sa0ChunLuyu 2 years ago
parent eac0067a0a
commit cad2d15527

@ -142,7 +142,7 @@ class Lu
self::$request->response_data = $data_str;
self::$request->save();
}
return $res;
return response()->json($res)->setEncodingOptions(JSON_UNESCAPED_UNICODE);
}
// endregion
// region echo

@ -24,7 +24,12 @@ class Yo
{
$msg = config("code.{$code}");
if (count($replace)) $msg = Str::replaceArray('?', $replace, $msg);
throw new HttpResponseException(response()->json(Lu::echo($msg, $code)));
throw new HttpResponseException(Lu::echo($msg, $code));
}
public static function debug($data)
{
throw new HttpResponseException(Lu::echo('Debug', 100000, $data));
}
public static function echo($data = [])

Loading…
Cancel
Save