Pārlūkot izejas kodu

for racc/callback/mh/weisanhuo_normal.php bug

stanley-king 1 gadu atpakaļ
vecāks
revīzija
3bf6cbe604
1 mainītis faili ar 7 papildinājumiem un 3 dzēšanām
  1. 7 3
      racc/callback/mh/weisanhuo_normal.php

+ 7 - 3
racc/callback/mh/weisanhuo_normal.php

@@ -2,7 +2,11 @@
 $content = $_SERVER['post_content'] ?? [];
 Log::record("weissanhuo_normal content=$content",Log::DEBUG);
 
-$input = json_decode($content,true);
-refill\util::push_notify('weisanhuo_normal',$input);
 
-echo ('success');
+$input = json_decode($content,true);
+if(!empty($input)) {
+    refill\util::push_notify('weisanhuo_normal',$input);
+    echo ('success');
+} else {
+    echo ('fail');
+}