mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2026-07-08 22:31:09 +08:00
Compare commits
No commits in common. "5130bac7c5ffa48dbd6236100131ab6a129b9997" and "f5123f899ebc69e69f0cc76f4bb4ad14ff4430f9" have entirely different histories.
5130bac7c5
...
f5123f899e
1
We.php
1
We.php
@ -86,7 +86,6 @@ use WeChat\Exceptions\InvalidInstanceException;
|
||||
* @method \WePay\Redpack WePayRedpack($options = []) static 微信红包支持
|
||||
* @method \WePay\Transfers WePayTransfers($options = []) static 微信商户打款到零钱
|
||||
* @method \WePay\TransfersBank WePayTransfersBank($options = []) static 微信商户打款到银行卡
|
||||
* @method \WePay\ProfitSharing WePayProfitSharing($options = []) static 微信分账
|
||||
*/
|
||||
class We
|
||||
{
|
||||
|
||||
@ -57,7 +57,6 @@ class Media extends BasicWeChat
|
||||
{
|
||||
$url = "https://api.weixin.qq.com/cgi-bin/media/get?access_token=ACCESS_TOKEN&media_id={$media_id}";
|
||||
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||
if($outType=='url') return $url;
|
||||
$result = Tools::get($url);
|
||||
if (is_array($json = json_decode($result, true))) {
|
||||
if (!$this->isTry && isset($json['errcode']) && in_array($json['errcode'], ['40014', '40001', '41001', '42001'])) {
|
||||
@ -145,7 +144,6 @@ class Media extends BasicWeChat
|
||||
{
|
||||
$url = "https://api.weixin.qq.com/cgi-bin/material/get_material?access_token=ACCESS_TOKEN";
|
||||
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||
if($outType=='url') return $url;
|
||||
$result = Tools::post($url, ['media_id' => $media_id]);
|
||||
if (is_array($json = json_decode($result, true))) {
|
||||
if (!$this->isTry && isset($json['errcode']) && in_array($json['errcode'], ['40014', '40001', '41001', '42001'])) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user