1、已知bug修复

2、微信接口更新
This commit is contained in:
2017-08-26 17:57:10 +08:00
parent cfcd6250ff
commit 356cccd1d4
25 changed files with 1353 additions and 695 deletions

View File

@@ -1,5 +1,17 @@
<?php
// +----------------------------------------------------------------------
// | wechat-php-sdk
// +----------------------------------------------------------------------
// | 版权所有 2014~2017 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +----------------------------------------------------------------------
// | 官方文档: https://www.kancloud.cn/zoujingli/wechat-php-sdk
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// +----------------------------------------------------------------------
// | github开源项目https://github.com/zoujingli/wechat-php-sdk
// +----------------------------------------------------------------------
namespace Wechat;
use Wechat\Lib\Common;
@@ -11,7 +23,8 @@ use Wechat\Lib\Tools;
* @author Anyon <zoujingli@qq.com>
* @date 2016/06/28 11:52
*/
class WechatMenu extends Common {
class WechatMenu extends Common
{
/** 创建自定义菜单 */
const MENU_ADD_URL = '/menu/create?';
@@ -33,7 +46,8 @@ class WechatMenu extends Common {
* @link https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141013&token=&lang=zh_CN 文档
* @return bool
*/
public function createMenu($data) {
public function createMenu($data)
{
if (!$this->access_token && !$this->getAccessToken()) {
return false;
}
@@ -54,7 +68,8 @@ class WechatMenu extends Common {
* 获取所有菜单
* @return bool|array
*/
public function getMenu() {
public function getMenu()
{
if (!$this->access_token && !$this->getAccessToken()) {
return false;
}
@@ -75,7 +90,8 @@ class WechatMenu extends Common {
* 删除所有菜单
* @return bool
*/
public function deleteMenu() {
public function deleteMenu()
{
if (!$this->access_token && !$this->getAccessToken()) {
return false;
}
@@ -98,7 +114,8 @@ class WechatMenu extends Common {
* @link https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1455782296&token=&lang=zh_CN 文档
* @return bool|string
*/
public function createCondMenu($data) {
public function createCondMenu($data)
{
if (!$this->access_token && !$this->getAccessToken()) {
return false;
}
@@ -120,7 +137,8 @@ class WechatMenu extends Common {
* @param string $menuid 菜单ID
* @return bool
*/
public function deleteCondMenu($menuid) {
public function deleteCondMenu($menuid)
{
if (!$this->access_token && !$this->getAccessToken()) {
return false;
}
@@ -143,7 +161,8 @@ class WechatMenu extends Common {
* @param string $openid 粉丝openid
* @return bool
*/
public function tryCondMenu($openid) {
public function tryCondMenu($openid)
{
if (!$this->access_token && !$this->getAccessToken()) {
return false;
}