callmez / yii2-wechat-sdk Goto Github PK
View Code? Open in Web Editor NEW基于Yii2实现的微信API(公众号,企业号)高效率(绝对的!)SDK.
License: MIT License
基于Yii2实现的微信API(公众号,企业号)高效率(绝对的!)SDK.
License: MIT License
buildXml中$this->itemTag不存在
$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);
这样来配置,发送消息失败,不知道是什么原因
微信的 EncodingAESKey 功能,好像在您这没有
你好,我是新手,想请问除了composer安装还可以通过什么方法安装呢 谢谢
计划提交一个 PR 将底层 http request 改用 yii2-httpclient 处理。
给个思路
直接在配置components配置好了,token验证不通过啊
报错:
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
我想问下,没有获取消息发送者之类的嘛
Getting unknown property: callmez\wechat\components\MpWechat::itemTag
BaseWechat中的getCache方法,定义和使用时参数个数不一致。
protected function getCache($name),但是使用时给了两个参数
创建临时二维码微信文档中的参数名是expire_seconds
如题,谢谢.
模板消息返回码,在发生失败的时候没有,没有错误码!
原生的获取成功了,使用你的这个获取失败了,不知道什么原因,也没提示
使用MpWechat的getOauth2AuthorizeUrl()获取code,这里的$redirectUrl不应该在调用的时候进行urlencode,因为此方法已经使用了http_build_query进行了urlencode。否则会导致redirect_uri参数错误。
此方法中的$redirect_url参数描述为“授权后重定向的回调链接地址,请使用urlencode对链接进行处理",会让人误以为传值应该是urlencode后的
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
yii微信端认证提示token验证失败;
\components\BaseWechat.php 301 行 第二个参数 $defaultValue 是不是忘了删了
exception 'yii\base\ErrorException' with message 'Undefined class constant 'WECHAT_TEMPLATE_MESSAGE_SEND_URL'' in /var/www/html/idarex/vendor/callmez/yii2-wechat-sdk/Wechat.php:705
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.
I want use my account and get all message i received?
我想使用我的帐户并获取我收到的所有消息吗?
ShakeAround.php 命名空间:callmez\wechat\mp;
MpWechat.php use callmez\wechat\sdk\mp\ShakeAround;
为什么会这样使用。
QyWechat从基类BaseWechat继承的抽象方法没有实现,有三个:getCacheKey,createMessageCrypt,parseHttpRequest。
请问你这个支持 企业号?有回调模式接口验证的功能吗?
$data['token']--->$data['access_token']
另外
$this->setAccessToken($result['access_token'], $result['expire']);
改为
$this->setAccessToken($result);
示例当中还是用getMembers来获取关注列表,实际sdk中已经改名为getMemberList
$qrcode = $wechat->createQrCode(123); 文档写错了,应该传data
$data=array(
"expire_seconds"=> 604800,
"action_name"=>"QR_SCENE",
"action_info"=>array("scene"=>array("scene_id"=>rand(1,999999999)))
);
全返回false了,解包有问题
getMaterialList中的errodcode改为errcode
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.