-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
客服接口暂时测到有3个bug,麻烦修复 #222
Comments
@punlap 既然你用 7.0.1 你就换成 3.0版本 |
@punlap 我发现微信的文档有两处关于客服管理的不同文档:http://mp.weixin.qq.com/wiki/11/c88c270ae8935291626538f9c64bd123.html#.E5.88.A0.E9.99.A4.E5.AE.A2.E6.9C.8D.E5.B8.90.E5.8F.B7 我改成了3个参数的形式,麻烦你试一下: 参考:a13f067 的变更改一下你的代码试试 |
@overtrue 好的,我试试 |
@xiaohome 最新下载的Homestead,默认就是7.0 |
@overtrue 如果传3个参数,会报参数错误,如果只填一个会报无效客服账号,是微信的问题吗? |
@punlap 这。。。,你的参数怎么填写的我看一下 |
@overtrue 我试了别人的SDK,也都是不行,添加/修改会报https错误,删除会报无效账号 代码: 报错: in /data/wwwroot/local/wechat/vendor/overtrue/wechat/src/Wechat/Staff.php at line 156 – Overtrue\Wechat\Utils\Http::get('https://api.weixin.qq.com/custom...', ['kf_account' => 'anne@tengyun']) |
好吧,那估计是平台有问题吧 |
@punlap 麻烦更新后再试一下,如果没问题了请关闭此issue,谢谢!有问题就继续反馈。 |
@overtrue 这个不是平台问题.是因为程序发送向https://api.weixin.qq.com/customservice/kfaccount/del?access_token=ACCESS_TOKEN&kf_account=KFACCOUNT的链接 |
@yanqing6628780 麻烦试一下POST方式是否可以,如果OK我直接改成POST请求 |
@overtrue |
好,明白了 |
@yanqing6628780 按我的修改一下试试:9348866 |
@overtrue 还发现个新问题是在Material.php的get函数 |
@yanqing6628780 应该好了。 |
@overtrue 测试过没有问题了~谢谢up主 |
😄
|
2.如果用Homestead,php版本号为“7.0.1-1+deb.sury.org~trusty+2”,版本判断会错误
那么上传客服头像时会报“curl_setopt(): Disabling safe uploads is no longer supported”
overtrue/wechat/src/Wechat/Utils/Http.php的197行
version_compare(PHP_VERSION, '5.5', '<') || curl_setopt($this->curl, CURLOPT_SAFE_UPLOAD, false);
3.删除客服,wiki中说使用
$staff->delete($email, $nickname, $password); 删除客服帐号
但overtrue/wechat/src/Wechat/Staff.php的delete方法只接收$email一个参数
如果只传$email,会报“无效客服账号(invalid kf_account)”这个错误
The text was updated successfully, but these errors were encountered: