|
@@ -285,6 +285,9 @@ class Wechat
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ * 设置消息的星标标志,官方已取消对此功能的支持
|
|
|
+ */
|
|
|
public function setFuncFlag($flag) {
|
|
|
$this->_funcflag = $flag;
|
|
|
return $this;
|
|
@@ -971,8 +974,11 @@ class Wechat
|
|
|
*/
|
|
|
public function reply($msg=array(),$return = false)
|
|
|
{
|
|
|
- if (empty($msg))
|
|
|
+ if (empty($msg)) {
|
|
|
+ if (empty($this->_msg))
|
|
|
+ return false;
|
|
|
$msg = $this->_msg;
|
|
|
+ }
|
|
|
$xmldata= $this->xml_encode($msg);
|
|
|
$this->log($xmldata);
|
|
|
if ($this->encrypt_type == 'aes') {
|