wechat-php-sdk
wechat-php-sdk copied to clipboard
微信公众平台php开发包, weixin developer SDK.
几个小建议
举例,getMedia()方法,微信不返回content_type,curl_getinfo获取到,因此我在子类中重写了此方法,重写时,需要能访问$access_token。 1,公司目前系统里,添加了一个类继承Wechat,但是http_get和http_post都是私有的,无法在子类中访问,也希望这样的方法可以pubulic,或者是protected。 2,公司有很多个公众号,有专门的系统去获取access token并缓存,无需Wechat SDK来获取,希望能有set和get方法来访问私有变量$access_token。 3,文件中,类PKCS7Encoder,Prpcrypt和ErrorCode,能使用Wechat开头(比如WechatPKCS7Encoder等,或者引入命名空间)最佳,系统中的另一个引入机会有ErrorCode,导致冲突。
很好的东西,学习了,辛苦了
第146行: $js_sign['appid']应为$js_sign['appId'] 第148行: $js_sign['noncestr']应为$js_sign['nonceStr'] 因为大小写的问题,导致拿不到数据。
源码包里面的有中文文件名,导致composer无法安装
 估计是因为中文文件名的原因
是否适用于laravel框架?
希望能出个CI版
希望能出个CI版
``` public function sendMessage($data){ if (!$this->access_token && !$this->checkAuth()) return false; // 此处添加 if (empty($data['agentid'])) { $data['agentid'] = $this->agentid; } $result = $this->http_post(self::API_URL_PREFIX.self::MASS_SEND_URL.'access_token='.$this->access_token,self::json_encode($data)); if ($result) { $json = json_decode($result,true); if (!$json...
切换入客服系统
为什么 $weObj->transfer_customer_service()->reply(); 无法切换到客服系统呢?