dever 6 years ago
parent
commit
c65398b279
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lib/Push.php

+ 3 - 1
lib/Push.php

@@ -111,9 +111,11 @@ class Push
    	{
    	{
    		$result = array();
    		$result = array();
    		$info = Dever::db('passport/app')->one(array('uid' => $account));
    		$info = Dever::db('passport/app')->one(array('uid' => $account));
-   		$info['source_type'] = 'ios';
+   		//$info['source_type'] = 'ios';
    		if ($info && $info['source_type']) {
    		if ($info && $info['source_type']) {
    			$result = $this->sendAction($info['source_type'], 2, $this->prefix . $account, $name, $content, $param);
    			$result = $this->sendAction($info['source_type'], 2, $this->prefix . $account, $name, $content, $param);
+   		} else {
+   			$result = '没有账户信息';
    		}
    		}
 
 
    		return $result;
    		return $result;