|
@@ -2,7 +2,11 @@
|
|
$content = $_SERVER['post_content'] ?? [];
|
|
$content = $_SERVER['post_content'] ?? [];
|
|
Log::record("weissanhuo_normal content=$content",Log::DEBUG);
|
|
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');
|
|
|
|
+}
|