課程
/后端開發(fā)
/PHP
/PHP微信公眾平臺(tái)開發(fā)高級(jí)篇—自定義菜單
那我這種值為空的情況,怎么解決方,能不能給出個(gè)具體的解決方法??!
2016-07-14
源自:PHP微信公眾平臺(tái)開發(fā)高級(jí)篇—自定義菜單 2-2
正在回答
output就是false ? 所以為空 ? 你可以看一下那個(gè)地方
function http_curl($url,$type='get',$res='json',$arr=''){
//初始化
$ch=curl_init($url);
//設(shè)置參數(shù)
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
if($type=='post'){
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,$arr);
}
//采集
$output=curl_exec($ch);
//關(guān)閉
curl_close($ch);
if($res=='json'){
return json_decode($output,true);
什么為空啊請(qǐng)說清楚一點(diǎn)?;蛘呓o出代碼。
舉報(bào)
自定義菜單是微信開發(fā)中必不可少的環(huán)節(jié),約嗎?
3 回答為什么這個(gè)方式來存儲(chǔ)access_token de 值為空呀????
2 回答Call to a member function get() on null 請(qǐng)問這怎么解決?
1 回答自定義菜單的那個(gè)方法不需要調(diào)用嗎
2 回答definedItem方法最后一步打印$res為空
1 回答這個(gè)頁面是IndexAction.class.php,然后服務(wù)器配置的是index/index,那么這個(gè)頁面是在哪里啊。。能告訴我之前的在哪里有,不然對(duì)應(yīng)不上啊,寫好的方法也不知道在哪里被調(diào)用
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-09-30
output就是false ? 所以為空 ? 你可以看一下那個(gè)地方
2016-08-23
function http_curl($url,$type='get',$res='json',$arr=''){
//初始化
$ch=curl_init($url);
//設(shè)置參數(shù)
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
if($type=='post'){
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,$arr);
}
//采集
$output=curl_exec($ch);
//關(guān)閉
curl_close($ch);
if($res=='json'){
return json_decode($output,true);
}
}
2016-07-31
什么為空啊請(qǐng)說清楚一點(diǎn)?;蛘呓o出代碼。