聯(lián)系官方銷售客服
1835022288
028-61286886
我在提交向text.php提交POST數(shù)據(jù)時(shí),數(shù)據(jù)格式為:is_ajax=1&data=JOSN格式數(shù)據(jù)
在text.php中的代碼為:
$data = \Phpcmf\Service::L('input')->post('data');
$data = json_decode($data,true);
if(empty($data)){
$return = ['沒有接收到數(shù)據(jù)'];
}
$return = $data;
可返回?cái)?shù)據(jù)是null,要如何修改代碼?
完整的url路徑是多少,test.php的完整路徑是多少
回復(fù)@官方插件實(shí)習(xí)技術(shù) https://www.hlx58xweb.cn/index.php?s=httpapi&id=3&appid=2&appsecret=HLXINFO57828A9E36BE400D400AC67
第二個(gè)問題的路徑是多少
回復(fù)@官方插件實(shí)習(xí)技術(shù) 都是一樣的
test.php的完整路徑是多少,跟什么都一樣?
就是插件中的默認(rèn)文件text. php,只是做了修改,用來測試的。路徑是httpapi/api/text.php