多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
~~~ 网站: https://www.kancloud.cn/a395766/bt_sg11api/1958120 开始加密 请求类型 POST 请求地址 https://api.bt58.vip/sg11 参数名 类型 描述 token String 密钥 file File 文件仅支持ZIP且小于3M note String 加密后展示的版权或备注 返回码 -> 描述 ->对应信息 返回码 描述 解决方案 ok 加密成功 link:下载链接 ,count:加密数量 -1 token error 密钥有误 10000 Insufficient number of token 密钥内可用加密数量不足 10001 zip file is not unzip 压缩包不能解压,更换ZIP文件上传 10002 file is not zip type 非zip文件类型,请上传zip文件 10003 zip is not open 压缩包打开或解压,更换ZIP文件上传 10004 file type or size Illegal 压缩包类型不受支持或超过3M 10005 zip is not file type 压缩包内未找到PHP文件 404 Illegal request! 非法请求 PHP demo <?php # //http请求库 下载地址 http://api.bt58.vip/http.php.zip # require './http.php'; $url = "https://api.bt58.vip/sg11"; $file = "/www/wwwroot/128169a2fc514c5e.zip"; **$post_data = array( "token"=>"你获取的token", "note"=>"贝塔网络工作室版权所有", "file" => "@".$file ); $res = ihttp_request($url,$post_data);** $status = json_decode($res['content'],true); if($status=='ok'){ //加密成功,自行进行下一步操作 }else{ //加密失败,参考返回码 对应信息 } ~~~