Browse Source

Fix voice, video interface

dodgepudding 10 years ago
parent
commit
f19ed4251a
4 changed files with 28 additions and 28 deletions
  1. 8 8
      Thinkphp/Wechat.class.php
  2. 7 7
      Thinkphp/qywechat.class.php
  3. 7 7
      qywechat.class.php
  4. 6 6
      wechat.class.php

+ 8 - 8
Thinkphp/Wechat.class.php

@@ -638,7 +638,7 @@ class Wechat
 	
 	/**
 	 * 设置回复消息
-	 * Examle: $obj->text('hello')->reply();
+	 * Example: $obj->text('hello')->reply();
 	 * @param string $text
 	 */
 	public function text($text='')
@@ -657,7 +657,7 @@ class Wechat
 	}
 	/**
 	 * 设置回复消息
-	 * Examle: $obj->image('media_id')->reply();
+	 * Example: $obj->image('media_id')->reply();
 	 * @param string $mediaid
 	 */
 	public function image($mediaid='')
@@ -677,7 +677,7 @@ class Wechat
 	
 	/**
 	 * 设置回复消息
-	 * Examle: $obj->voice('media_id')->reply();
+	 * Example: $obj->voice('media_id')->reply();
 	 * @param string $mediaid
 	 */
 	public function voice($mediaid='')
@@ -697,10 +697,10 @@ class Wechat
 	
 	/**
 	 * 设置回复消息
-	 * Examle: $obj->video('media_id','title','description')->reply();
+	 * Example: $obj->video('media_id','title','description')->reply();
 	 * @param string $mediaid
 	 */
-	public function video($mediaid='',$title,$description)
+	public function video($mediaid='',$title='',$description='')
 	{
 		$FuncFlag = $this->_funcflag ? 1 : 0;
 		$msg = array(
@@ -709,8 +709,8 @@ class Wechat
 			'MsgType'=>self::MSGTYPE_IMAGE,
 			'Video'=>array(
 			        'MediaId'=>$mediaid,
-			        'Title'=>$mediaid,
-			        'Description'=>$mediaid,
+			        'Title'=>$title,
+			        'Description'=>$description
 			),
 			'CreateTime'=>time(),
 			'FuncFlag'=>$FuncFlag
@@ -1887,7 +1887,7 @@ class Wechat
 
 	/**
 	 * 转发多客服消息
-	 * Examle: $obj->transfer_customer_service($customer_account)->reply();
+	 * Example: $obj->transfer_customer_service($customer_account)->reply();
 	 * @param string $customer_account 转发到指定客服帐号:test1@test
 	 */
 	public function transfer_customer_service($customer_account = '')

+ 7 - 7
Thinkphp/qywechat.class.php

@@ -635,7 +635,7 @@ class Wechat
 	
 	/**
 	 * 设置回复消息
-	 * Examle: $obj->text('hello')->reply();
+	 * Example: $obj->text('hello')->reply();
 	 * @param string $text
 	 */
 	public function text($text='')
@@ -653,7 +653,7 @@ class Wechat
 	
 	/**
 	 * 设置回复消息
-	 * Examle: $obj->image('media_id')->reply();
+	 * Example: $obj->image('media_id')->reply();
 	 * @param string $mediaid
 	 */
 	public function image($mediaid='')
@@ -671,7 +671,7 @@ class Wechat
 	
 	/**
 	 * 设置回复消息
-	 * Examle: $obj->voice('media_id')->reply();
+	 * Example: $obj->voice('media_id')->reply();
 	 * @param string $mediaid
 	 */
 	public function voice($mediaid='')
@@ -689,10 +689,10 @@ class Wechat
 	
 	/**
 	 * 设置回复消息
-	 * Examle: $obj->video('media_id','title','description')->reply();
+	 * Example: $obj->video('media_id','title','description')->reply();
 	 * @param string $mediaid
 	 */
-	public function video($mediaid='',$title,$description)
+	public function video($mediaid='',$title='',$description='')
 	{
 		$msg = array(
 			'ToUserName' => $this->getRevFrom(),
@@ -700,8 +700,8 @@ class Wechat
 			'MsgType'=>self::MSGTYPE_IMAGE,
 			'Video'=>array(
 			        'MediaId'=>$mediaid,
-			        'Title'=>$mediaid,
-			        'Description'=>$mediaid,
+			        'Title'=>$title,
+			        'Description'=>$description
 			),
 			'CreateTime'=>time(),
 		);

+ 7 - 7
qywechat.class.php

@@ -630,7 +630,7 @@ class Wechat
 	
 	/**
 	 * 设置回复消息
-	 * Examle: $obj->text('hello')->reply();
+	 * Example: $obj->text('hello')->reply();
 	 * @param string $text
 	 */
 	public function text($text='')
@@ -648,7 +648,7 @@ class Wechat
 	
 	/**
 	 * 设置回复消息
-	 * Examle: $obj->image('media_id')->reply();
+	 * Example: $obj->image('media_id')->reply();
 	 * @param string $mediaid
 	 */
 	public function image($mediaid='')
@@ -666,7 +666,7 @@ class Wechat
 	
 	/**
 	 * 设置回复消息
-	 * Examle: $obj->voice('media_id')->reply();
+	 * Example: $obj->voice('media_id')->reply();
 	 * @param string $mediaid
 	 */
 	public function voice($mediaid='')
@@ -684,10 +684,10 @@ class Wechat
 	
 	/**
 	 * 设置回复消息
-	 * Examle: $obj->video('media_id','title','description')->reply();
+	 * Example: $obj->video('media_id','title','description')->reply();
 	 * @param string $mediaid
 	 */
-	public function video($mediaid='',$title,$description)
+	public function video($mediaid='',$title='',$description='')
 	{
 		$msg = array(
 			'ToUserName' => $this->getRevFrom(),
@@ -695,8 +695,8 @@ class Wechat
 			'MsgType'=>self::MSGTYPE_IMAGE,
 			'Video'=>array(
 			        'MediaId'=>$mediaid,
-			        'Title'=>$mediaid,
-			        'Description'=>$mediaid,
+			        'Title'=>$title,
+			        'Description'=>$description
 			),
 			'CreateTime'=>time(),
 		);

+ 6 - 6
wechat.class.php

@@ -633,7 +633,7 @@ class Wechat
 	
 	/**
 	 * 设置回复消息
-	 * Examle: $obj->text('hello')->reply();
+	 * Example: $obj->text('hello')->reply();
 	 * @param string $text
 	 */
 	public function text($text='')
@@ -652,7 +652,7 @@ class Wechat
 	}
 	/**
 	 * 设置回复消息
-	 * Examle: $obj->image('media_id')->reply();
+	 * Example: $obj->image('media_id')->reply();
 	 * @param string $mediaid
 	 */
 	public function image($mediaid='')
@@ -672,7 +672,7 @@ class Wechat
 	
 	/**
 	 * 设置回复消息
-	 * Examle: $obj->voice('media_id')->reply();
+	 * Example: $obj->voice('media_id')->reply();
 	 * @param string $mediaid
 	 */
 	public function voice($mediaid='')
@@ -692,7 +692,7 @@ class Wechat
 	
 	/**
 	 * 设置回复消息
-	 * Examle: $obj->video('media_id','title','description')->reply();
+	 * Example: $obj->video('media_id','title','description')->reply();
 	 * @param string $mediaid
 	 */
 	public function video($mediaid='',$title='',$description='')
@@ -705,7 +705,7 @@ class Wechat
 			'Video'=>array(
 			        'MediaId'=>$mediaid,
 			        'Title'=>$title,
-			        'Description'=>$description,
+			        'Description'=>$description
 			),
 			'CreateTime'=>time(),
 			'FuncFlag'=>$FuncFlag
@@ -1877,7 +1877,7 @@ class Wechat
 
 	/**
 	 * 转发多客服消息
-	 * Examle: $obj->transfer_customer_service($customer_account)->reply();
+	 * Example: $obj->transfer_customer_service($customer_account)->reply();
 	 * @param string $customer_account 转发到指定客服帐号:test1@test
 	 */
 	public function transfer_customer_service($customer_account = '')