dever 6 年之前
父节点
当前提交
b07ee53c99
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/Data.php

+ 2 - 2
lib/Data.php

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