找到11291个回复
  • typecho+nginx 开启伪静态后访问后台404
    8804点击 / 2023-02-21发布 / 2023-02-21回复 / /

    找到问题了,似乎nginx在进行-e判断的时候是在本地读取的,我的nginx和typecho不在同一个docker,所以我应该要把/app文件夹也挂载在nginx的容器里,这样一来看起来好奇怪啊
    小米8 Explore Edition (透明色)

  • 公司押金不退
    42644点击 / 2023-02-20发布 / 2023-02-21回复 / /

    已删除该帖内的大量ChatGPT问答。不要在帖子内问无关问题。

  • 买一个随身wifi刷debian
    196133点击 / 2023-02-19发布 / 2023-02-21回复 / /
    其实可以多个玩阵列,只需要一个usb拓展卡!我白嫖了6个!😂😂😂
  • 目前已将Default模型设为默认,它好像可以像Bing一样访问互联网获取答案,不过每次都需要你主动让它访问,并且可能有非常多的限制。

  • 买一个随身wifi刷debian
    196133点击 / 2023-02-19发布 / 2023-02-21回复 / /
    @旧人,我买了3个,只有1个带卡槽,全部吃灰了,刷了2个Openwrt,1个armbian
  • 银河麒麟V10自动注销怎么解决
    13833点击 / 2023-02-20发布 / 2023-02-20回复 / /
  • 组装台式电脑预算7500以内
    112181点击 / 2023-02-11发布 / 2023-02-20回复 / /

    @天蓝,你的小尾巴误导了它

  • 公司押金不退
    42644点击 / 2023-02-20发布 / 2023-02-20回复 / /

    @5258,线下的小公司网络投诉可能没啥用,去工商局或工商所进行投诉倒是一种方法。

  • 组装台式电脑预算7500以内
    112181点击 / 2023-02-11发布 / 2023-02-20回复 / /
    层主 @天蓝 于 2023-02-20 20:22 删除了该楼层。
  • 公司押金不退
    42644点击 / 2023-02-20发布 / 2023-02-20回复 / /

    @老虎会游泳,这是线下的小公司。希望网络投诉有用

    一加7pro(皇帝版)
  • 买一个随身wifi刷debian
    196133点击 / 2023-02-19发布 / 2023-02-20回复 / /
    @胡椒舰长,14买的,ram只有512,太小了
  • 买一个随身wifi刷debian
    196133点击 / 2023-02-19发布 / 2023-02-20回复 / /
    层主 @旧人 于 2023-02-20 19:20 删除了该楼层。
  • 公司押金不退
    42644点击 / 2023-02-20发布 / 2023-02-20回复 / /
  • 公司押金不退
    42644点击 / 2023-02-20发布 / 2023-02-20回复 / /

    @老虎会游泳,网上投诉走哪个通道。消费者协会还是?
    一加7pro(皇帝版)

  • 公司押金不退
    42644点击 / 2023-02-20发布 / 2023-02-20回复 / /

    @5258,基本上也只有这几种思路:网络投诉、找媒体曝光、法院起诉。

  • 公司押金不退
    42644点击 / 2023-02-20发布 / 2023-02-20回复 / /

    @老虎会游泳,安徽来跑车公司,联系的他们的老板
    一加7pro(皇帝版)

  • 买一个随身wifi刷debian
    196133点击 / 2023-02-19发布 / 2023-02-20回复 / /

    @旧人,电视盒子太大了,没意思,这个小可以用充电宝启动,
    还有你这个多少钱买的

  • 记录
    31560点击 / 2022-04-08发布 / 2023-02-20回复 / /
    // 聊天框的CSS选择器
    const chatBoxSelector = 'textarea.w-full.p-0';
    
    // 发送按钮的CSS选择器
    const sendButtonSelector = 'button.absolute.p-1';
    
    // 正在输入动效(取代发送按钮)的CSS选择器
    const replyNotReadySelector = 'div.text-2xl';
    
    // 聊天回答的CSS选择器
    const chatReplySelector = 'div.markdown';
    
    // 用户自身的虎绿林uid
    const hu60MyUid = 19346; // 改成自己的uid
    
    // 用户的虎绿林sid
    const hu60Sid = '4JfOlTT3iHw58i1ITtpS0okksAAA';
    
    // 带sid的虎绿林URL
    const hu60BaseUrl = 'https://hu60.cn/q.php/' + hu60Sid + '/';
    
    /////////////////////////////////////////////////////////////
    
    // 发送聊天信息
    function sendText(text) {
        let chatBox = document.querySelector(chatBoxSelector);
        let sendButton = document.querySelector(sendButtonSelector);
    
        chatBox.value = text;
        sendButton.click();
    }
    
    // 读取响应
    function readReply() {
        let reply = Array.from(document.querySelectorAll(chatReplySelector)).at(-1);
        let lines = [];
        
        if (!reply.childNodes) {
            // 错误信息
            return reply.innerText;
        }
    
        reply.childNodes.forEach(x => {
            if (x.tagName == 'PRE') { // 代码
                lines.push("\n```\n" + x.querySelector('code').innerText + "\n```\n");
            } else { // 正文
                lines.push(x.innerText);
            }
        });
    
        return lines.join("\n\n");
    }
    
    // 判断响应是否结束
    function isFinished() {
        return document.querySelector(replyNotReadySelector) == null;
    }
    
    // 读取@消息
    async function readAtInfo() {
        let response = await fetch(hu60BaseUrl + '[email protected]?_origin=*&_content=json');
        return await response.json();
    }
    
    // 读取帖子内容
    async function readTopicContent(path) {
        let url = hu60BaseUrl + path.replace('{$BID}', 'json').replace('?', '?_origin=*&_content=text&pageSize=1&');
        let response = await fetch(url);
        return await response.json();
    }
    
    // 回复帖子
    async function replyTopic(uid, replyText, topicObject) {
        let content = "<!md>\n@#" + uid + "," + replyText;
    
        let url = null;
        if (topicObject.tMeta) { // 帖子
            url = 'bbs.newreply.'+encodeURIComponent(topicObject.tContents[0].topic_id)+'.json';
        } else { // 聊天室
            url = 'addin.chat.'+encodeURIComponent(topicObject.chatRomName)+'.json';
        }
    
        let formData = new FormData();
        formData.append('content', content);
        formData.append('token', topicObject.token);
        formData.append('go', '1');
    
        let response = await fetch(hu60BaseUrl + url + '?_origin=*', {
            body: formData,
            method: "post",
            redirect: "manual" // 不自动重定向
        });
        return response;
    }
    
    // 休眠指定的毫秒数
    // 用法:await sleep(1000)
    const sleep = ms => new Promise(r => setTimeout(r, ms));
    
    // 回复@信息
    async function replyAtInfo(info) {
        try {
            let uid = info.byuid;
            let url = info.content[0].url;
            let floor = url.split('#')[1];
    
            // 防止自己和自己对话
            if (uid == hu60MyUid || uid < 1) {
                return;
            }
    
            console.log(info);
    
            let topicObject = await readTopicContent(url);
            let text = null;
            if (topicObject.tContents) {
                text = topicObject.tContents[0].content;
            } else {
                text = topicObject.chatList[0].content;
            }
            
            sendText(text);
    
            do {
                await sleep(500);
            } while (!isFinished());
    
            let replyText = readReply();
            let response = await replyTopic(uid, replyText, topicObject);
            console.log(response);
        } catch (ex) {
            console.error(ex);
        }
    }
    
    // 运行机器人
    async function run() {
        console.log('虎绿林ChatGPT机器人已启动');
        while (true) {
            try {
                // 浏览器用户可能直接输入了问题,等待回答完成
                if (!isFinished()) {
                    do {
                        await sleep(500);
                    } while (!isFinished());
                }
    
                let atInfo = await readAtInfo();
                console.log(new Date(), atInfo);
                for (let i=0; i<atInfo.msgList.length; i++) {
                    await replyAtInfo(atInfo.msgList[i]);
                }
                await sleep(1000);
            } catch (ex) {
                console.error(ex);
            }
        }
    }
    
    run();
    

    一加8Pro

  • 买一个随身wifi刷debian
    196133点击 / 2023-02-19发布 / 2023-02-20回复 / /
    @胡椒舰长@一起走吧,可以买电视盒子玩,大概50左右,可玩性高很多
  • 公司押金不退
    42644点击 / 2023-02-20发布 / 2023-02-20回复 / /

    @5258,什么公司,你联系的谁?