rabin 1 year ago
parent
commit
9b20232ef3
2 changed files with 5 additions and 0 deletions
  1. 3 0
      lib/Core.php
  2. 2 0
      lib/Wechat.php

+ 3 - 0
lib/Core.php

@@ -14,6 +14,9 @@ function callAction($send)
 		}
 		if ($send['s']) {
 			$param = Dever::load($send['a'] . '/' . $send['s'], $send['p']);
+			if (!$param) {
+				return false;
+			}
 		}
 
 		if (isset($param['run_num']) && $param['run_num'] > 1) {

+ 2 - 0
lib/Wechat.php

@@ -412,6 +412,8 @@ class Wechat
 				$config['param'][$k] = $param[$v];
 			} elseif($v) {
 				$config['param'][$k] = $this->replace($v, $param);
+			} else {
+				unset($config['param'][$k]);
 			}
 		}