This commit is contained in:
2021-09-10 14:00:38 +08:00
parent 7954345cc4
commit e1223f38cd
+1
View File
@@ -15,6 +15,7 @@ class Parse
*/ */
public static function data($content, $contentType): mixed public static function data($content, $contentType): mixed
{ {
var_dump($contentType, $content);
if (str_contains($contentType, 'json')) { if (str_contains($contentType, 'json')) {
return json_encode($content,true); return json_encode($content,true);
} }