|
|
|
|
@ -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 = [])
|
|
|
|
|
|