|
@@ -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) {
|