Skip to content

Commit 05d57ce

Browse files
authored
Merge pull request dodgepudding#306 from sarices/master
修正上传在摇一摇页面展示的图片素材接口地址错误的bug
2 parents 5698661 + 408677c commit 05d57ce

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
/**
3+
* 微信摇一摇周边上传素材测试
4+
*
5+
*/
6+
include("../wechat.class.php");
7+
8+
$options = array(
9+
'appid' => '', //填写高级调用功能的app id, 请在微信开发模式后台查询
10+
'appsecret' => '', //填写高级调用功能的密钥
11+
);
12+
$weObj = new Wechat($options);
13+
$weObj->uploadShakeAroundMedia(array('media'=>'@'));

wechat.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3997,7 +3997,7 @@ public function bindPageShakeAroundDevice($device_id,$page_ids=array(),$bind=1,$
39973997
*/
39983998
public function uploadShakeAroundMedia($data){
39993999
if (!$this->access_token && !$this->checkAuth()) return false;
4000-
$result = $this->http_post(self::API_URL_PREFIX.self::SHAKEAROUND_MATERIAL_ADD.'access_token='.$this->access_token,$data,true);
4000+
$result = $this->http_post(self::API_BASE_URL_PREFIX.self::SHAKEAROUND_MATERIAL_ADD.'access_token='.$this->access_token,$data,true);
40014001
if ($result)
40024002
{
40034003
$json = json_decode($result,true);

0 commit comments

Comments
 (0)