瀏覽代碼

for racc/callback/mh/weisanhuo_normal.php bug

stanley-king 1 年之前
父節點
當前提交
3bf6cbe604
共有 1 個文件被更改,包括 7 次插入3 次删除
  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');
+}