__FresHmaN

Results 41 comments of __FresHmaN

https://github.com/dodgepudding/wechat-php-sdk/blob/master/wechat.class.php#L1037

看来是文档写的不够全?没有对POST数据说明

刚测试了下,成功了,需要post的是图片的二进制数据。

``` $body = file_get_contents('path/to/xx.jpg'); //.... //curl curl_setopt($oCurl, CURLOPT_POSTFIELDS, $body); ``` 就是获取图片的二进制数据,直接post

include_once 如果该文件已经包含,则不会再次包含。

@picasso250 @koboshi 至少lp里使用了once,如果是自己写东西,当然不使用once,但是作为框架级别的,不能保证每个使用者都会注意到文件的引用关系。