Prechádzať zdrojové kódy

fix callback json_decode return false error

stanley-king 3 rokov pred
rodič
commit
c9bf8c70be

+ 1 - 1
mobile/callback/refill_hangtong.php

@@ -2,7 +2,7 @@
 
 $content = $_SERVER['post_content'];
 
-$inputs = json_decode($content,true);
+$inputs = json_decode($content,true) ?? [];
 foreach ($inputs as $input) {
     refill\util::push_notify('hangtong',$input);
 }

+ 1 - 1
mobile/mobile_run.php

@@ -40,7 +40,7 @@ require_once(BASE_HELPER_PATH . '/refill/util.php');
 
 
 function all_channels() {
-    return ['ch_index','activity','goods','refill'];
+    return ['ch_index','activity','goods'];
 }
 
 Base::mobile_init();