api 全部正常写 可以获取打网站列表,不能添加网站代码
$p_data = Bt::GetKeyData();
$p_data['webname'] = json_encode(['domain'=>"www.masax.cn",'damainlist'=>[],'count'=>0]);
$p_data['type'] ="PHP";
$p_data['port'] = 80;
$p_data['ps'] = "www_masax_cn";
$p_data['path'] = "/www/wwwroot/www.masax.cn";
$p_data['type_id'] = 0;
$p_data['version'] =74;
$p_data['ftp'] = "false";
$p_data['sql'] ="false";
$p_data['ftp_password'] = "";
$p_data['sql'] = "false";
$p_data['codeing'] = "utf8";
$url = $this->domain.'/site?action=AddSite';
$res=bt::HttpPostCookie($url,$p_data);
报错
Internal Server ErrorThe server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
可以用/data?action=getData&table=sites 获取到网站数据
不能添加什么鬼
|