3Pub 的评论 / zh-CN three pub Mon, 30 Nov 2020 10:03:04 +0000 Mon, 30 Nov 2020 10:03:04 +0000 zhao /index.php/archives/319/#comment-185 /index.php/archives/319/#comment-185 Mon, 30 Nov 2020 10:03:04 +0000 zhao 你好,我最近项目也出现了swServer_master_onAccept (ERROR 502): accept() failed. Error: Too many open files[24] 错误
调整了ulimit -n 也是无用
不懂怎么解决

]]>
/index.php/archives/319/#comment-185#comments
e0aKmeeTeam /index.php/archives/91/#comment-182 /index.php/archives/91/#comment-182 Sun, 20 Sep 2020 19:29:11 +0000 e0aKmeeTeam [secret]0KeeT[/secret]

]]>
/index.php/archives/91/#comment-182#comments
kick7spring /index.php/archives/506/#comment-181 /index.php/archives/506/#comment-181 Fri, 11 Sep 2020 01:25:50 +0000 kick7spring

var b64Data = 'H4sIAAAAAAAAAJ3UMQ7CMAwF0KugP2ewEzdpcxXUAbWAOiHUMqCqdyeVQAobfGXIYL8hP5ZXnEdkeNEk6vUgXTbLonC4zMjHFY/5Wm511ekdTsOCLKVp2rlIKOA2jTuBot/cr7BhobEwsbAloY8kDGyqoQ5H/oHsdwQ21cCmaspCz0L2jcYOgLHhNGw4TT1yVmBpuS9PZHWY35siqnxvimEvpE9FY4peQhfbhO0FDnuFqWAEAAA=';
var ticketData = '{"ed":"20170121 09:44:01","fs":[{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"003","oids":["1"]},{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"005","oids":["1"]},{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"004","oids":["1"]},{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"007","oids":["1"]},{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"008","oids":["1"]},{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"026","oids":["1"]},{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"033","oids":["1"]},{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"034","oids":["0"]},{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"035","oids":["1"]},{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"037","oids":["1"]},{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"038","oids":["1"]},{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"041","oids":["1"]},{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"042","oids":["1"]},{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"047","oids":["1"]},{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"046","oids":["1"]},{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"048","oids":["1"]},{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"051","oids":["1"]},{"usg":[1,1,1,1,1,1,1],"act":0,"fid":"053","oids":["4"]}],"qty":1,"sd":"20161021 09:44:01","cd":"72016102116762039687"}';
// Output to console
var s = unzip(b64Data);
console.log("unzipped:");
console.log(s);

var data = zip(ticketData);
console.log("zipped:");
console.log(data);

function unzip(b64Data){
var strData = atob(b64Data);

// Convert binary string to character-number array
var charData = strData.split('').map(function(x){return x.charCodeAt(0);});

// Turn number array into byte-array
var binData = new Uint8Array(charData);

// // unzip
var data = pako.inflate(binData);

// Convert gunzipped byteArray back to ascii string:
strData = String.fromCharCode.apply(null, new Uint16Array(data));
return strData;
}

function zip(str){
var binaryString = pako.gzip(str, { to: 'string' });

return btoa(binaryString);
}

大佬弄帮我看看这个unzip 用PHP该怎么实现呢?

]]>
/index.php/archives/506/#comment-181#comments
婷婷 /index.php/archives/583/#comment-178 /index.php/archives/583/#comment-178 Tue, 25 Aug 2020 06:21:54 +0000 婷婷 哈哈 他好像花钱买的模板

]]>
/index.php/archives/583/#comment-178#comments
白秋白 /index.php/archives/98/#comment-176 /index.php/archives/98/#comment-176 Tue, 18 Aug 2020 15:47:38 +0000 白秋白 楼主这个克隆不到。。

]]>
/index.php/archives/98/#comment-176#comments
测试 /index.php/archives/483/#comment-175 /index.php/archives/483/#comment-175 Tue, 11 Aug 2020 07:43:17 +0000 测试 请问如何删除呢~

]]>
/index.php/archives/483/#comment-175#comments
planck /index.php/archives/583/#comment-174 /index.php/archives/583/#comment-174 Thu, 30 Jul 2020 07:57:37 +0000 planck 博主大大,请教一下为何你的页面滚动如此顺滑,我尝试过 body, html { scroll-behavior:smooth; },可是一点效果也没有。

]]>
/index.php/archives/583/#comment-174#comments
php天下第一 /index.php/archives/495/#comment-172 /index.php/archives/495/#comment-172 Sat, 23 May 2020 05:49:52 +0000 php天下第一 gzdecode是php自带的啊

]]>
/index.php/archives/495/#comment-172#comments
111 /index.php/archives/483/#comment-170 /index.php/archives/483/#comment-170 Sat, 18 Apr 2020 09:40:16 +0000 111 测试下评论

]]>
/index.php/archives/483/#comment-170#comments
xavier /index.php/archives/392/#comment-167 /index.php/archives/392/#comment-167 Wed, 08 Apr 2020 02:20:20 +0000 xavier 您好,想问下这个临时文件是swoole自动建立的吗,只要task异步投递的数据大小大于8k就会生成这个文件了吗?

]]>
/index.php/archives/392/#comment-167#comments