Browse Source

$request->has('contentType')

visuddhinanda 2 years ago
parent
commit
e5a47d1357
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Http/Controllers/SentenceController.php

+ 2 - 2
app/Http/Controllers/SentenceController.php

@@ -289,8 +289,8 @@ class SentenceController extends Controller
             "create_time"=>time()*1000,
         ]);
         $sent->content = $request->get('content');
-        if($request->has('content_type')){
-            $sent->content_type = $request->get('content_type');
+        if($request->has('contentType')){
+            $sent->content_type = $request->get('contentType');
         }
         $sent->language = $channel->lang;
         $sent->status = $channel->status;