GithubHelp home page GithubHelp logo

yii2-wechat-sdk's Issues

模版消息发送失败

$arr = array(
'first'=>'first',
'Topic'=>'topic',
'Time'=>date('Y-m-d H:i:s',time()),
'Address'=>'Address',
'remark'=>'remark'
);

   $wechat = Yii::$app->wechat;
    // 发送模版消息
   $result = $wechat->sendTemplateMessage('openid','模版id',$arr);
   var_dump($result);

这样来配置,发送消息失败,不知道是什么原因

企业号还不能用吧?

报错:

PHP Fatal error: Class callmez\wechat\sdk\QyWechat contains 3 abstract methods and must therefore be declared abstract or implement the remaining methods (callmez\wechat\sdk\components\BaseWechat::createMessageCrypt, callmez\wechat\sdk\components\BaseWechat::getCacheKey, callmez\wechat\sdk\components\BaseWechat::parseHttpRequest) in MY_CODE_PATH/vendor/callmez/yii2-wechat-sdk/QyWechat.php on line 11

MpWechat中getOauth2AuthorizeUrl() $redirectUrl问题

使用MpWechat的getOauth2AuthorizeUrl()获取code,这里的$redirectUrl不应该在调用的时候进行urlencode,因为此方法已经使用了http_build_query进行了urlencode。否则会导致redirect_uri参数错误。

此方法中的$redirect_url参数描述为“授权后重定向的回调链接地址,请使用urlencode对链接进行处理",会让人误以为传值应该是urlencode后的

这是bug吗?跟php版本有关吗?我的是5.5.3 网上都没有解决办法

Use of undefined constant CURL_SSLVERSION_TLSv1 - assumed 'CURL_SSLVERSION_TLSv1'

PHP Notice – yii\base\ErrorException
Use of undefined constant CURL_SSLVERSION_TLSv1 - assumed 'CURL_SSLVERSION_TLSv1'

1. in /data/wwwroot/default/weixin/vendor/callmez/Wechat.php at line 2558
2549255025512552255325542555255625572558255925602561256225632564256525662567

                }
                curl_setopt($curl, CURLOPT_POSTFIELDS, $params);
                break;
            default:
                throw new InvalidParamException("Invalid http type '{$type}.' called.");
        }
        if (stripos($url, "https://") !== false) {
            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
            curl_setopt($curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1); // 微信官方屏蔽了ssl2和ssl3, 启用更高级的ssl

yii2-wechat-sdk下存在.git文件夹

yii2-wechat-sdk下存在.git文件夹
导致我经常和自己的git冲突,无法把vendor下的callmez直接作为文件提交,会导致本地已提交也已经推送,但git仓库实际没有的问题

安装出错

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for callmez/yii2-wechat dev-master -> satisfiable by callmez/yii2-wechat[dev-master].
- callmez/yii2-wechat dev-master requires bower-asset/angular-drag-and-drop-lists 1.* -> no matching package found.

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

命名空间

ShakeAround.php 命名空间:callmez\wechat\mp;
MpWechat.php use callmez\wechat\sdk\mp\ShakeAround;

为什么会这样使用。

文档错误

$qrcode = $wechat->createQrCode(123); 文档写错了,应该传data

$data=array(
"expire_seconds"=> 604800,
"action_name"=>"QR_SCENE",
"action_info"=>array("scene"=>array("scene_id"=>rand(1,999999999)))
);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.