function add_material($obj) {
$file_info = array(
> '/Public/Public/download.png', //圖片片相對於網站根目錄的路徑
'content-type' => 'image/png', 'filelength' => '11011' );
$access_token = $this -> get_access_token();
$url = "https://api.weixin.qq.com/cgi-bin/material/add_material?access_token={$qq.com/cgi-bin/material/add_material?access_token={$qq.com/cgi-bin/material/add_material?access_token={$qq.com/cgi-bin/material/add_material?access_token={$qq.) ;
$real_path = "{$_SERVER['SERVER_NAME']}{$file_info['filename']}";
##; {$real_path}", 'form-data' => $file_info);
$result = $this->https_request($url json_decode($result, true);
if($result['media_id'])
($obj,$result['media_id']) ;
}else {
return $this->replyText($
}
#
同求以上問題答案,也遇到了同樣的問題。各位牛人快來回答!