dever 6 anni fa
parent
commit
b07ee53c99
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      lib/Data.php

+ 2 - 2
lib/Data.php

@@ -105,7 +105,7 @@ class Data
      * 
      * @return mixed
      */
-	public function push($uid, $to_uid, $name, $content, $type = 1)
+	public function push($uid, $to_uid, $name, $content, $type = 11)
 	{
         //$site 	    = intval(Dever::input('site', -1));
 
@@ -118,7 +118,7 @@ class Data
             Dever::alert('错误的站点ID');
         }
         */
-        if ($type > 10 && !is_numeric($uid)) {
+        if ($type > 10 && !$uid) {
             Dever::alert('错误的发件人id');
         }
         if ($type > 10 && !$to_uid) {