123,123,123http://insta-market.com/龍巖小程序開發(fā),龍巖分銷系統- 龍蝦(OpenClaw)AI系統中所有斜杠指令的中文解釋http://insta-market.com/post/2720.html<p><strong><span style="text-wrap-mode: nowrap;">Session 會話管理</span></strong></p><p><span style="text-wrap-mode: nowrap;">/session - 管理會話級別的設置(例如設置空閑時間 /session idle).</span></p><p><span style="text-wrap-mode: nowrap;">/stop - 停止當前正在運行的任務.</span></p><p><span style="text-wrap-mode: nowrap;">/reset - 重置當前會話(清空上下文,重新開始).</span></p><p><span style="text-wrap-mode: nowrap;">/new - 開啟一個新的會話.</span></p><p><span style="text-wrap-mode: nowrap;">/compact - 壓縮會話的上下文以節(jié)省空間.</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><strong><span style="text-wrap-mode: nowrap;">Options 選項設置</span></strong></p><p><span style="text-wrap-mode: nowrap;">/usage - 顯示使用量統計或費用摘要.</span></p><p><span style="text-wrap-mode: nowrap;">/think (/thinking, /t) - 設置思考深度等級.</span></p><p><span style="text-wrap-mode: nowrap;">/verbose (/v) - 切換詳細輸出模式(顯示更多后臺信息).</span></p><p><span style="text-wrap-mode: nowrap;">/reasoning (/reason) -切換推理過程的可見性.</span></p><p><span style="text-wrap-mode: nowrap;">/elevated (/elev) - 切換高權限模式(允許執(zhí)行更高風險操作).</span></p><p><span style="text-wrap-mode: nowrap;">/exec - 為當前會話設置命令執(zhí)行的默認參數.</span></p><p><span style="text-wrap-mode: nowrap;">/model - 顯示或設置當前使用的AI模型.</span></p><p><span style="text-wrap-mode: nowrap;">/models - 列出可用的模型提供商或具體模型.</span></p><p><span style="text-wrap-mode: nowrap;">/queue - 調整任務隊列的設置.</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><strong><span style="text-wrap-mode: nowrap;">Status 狀態(tài)查詢</span></strong></p><p><span style="text-wrap-mode: nowrap;">/help - 顯示可用的幫助命令.</span></p><p><span style="text-wrap-mode: nowrap;">/commands - 列出所有斜杠指令.</span></p><p><span style="text-wrap-mode: nowrap;">/status - 顯示當前系統狀態(tài).</span></p><p><span style="text-wrap-mode: nowrap;">/context - 解釋上下文是如何構建和使用的.</span></p><p><span style="text-wrap-mode: nowrap;">/export-session (/export) - 將當前會話導出為包含完整系統提示的HTML文件.</span></p><p><span style="text-wrap-mode: nowrap;">/whoami (/id) - 顯示你的用戶標識符.</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><strong><span style="text-wrap-mode: nowrap;">Management 系統管理</span></strong></p><p><span style="text-wrap-mode: nowrap;">/allowlist [text] - 列出、添加或移除白名單條目.</span></p><p><span style="text-wrap-mode: nowrap;">/approve - 批準或拒絕執(zhí)行請求.</span></p><p><span style="text-wrap-mode: nowrap;">/subagents - 列出、終止、查看日志、創(chuàng)建或引導當前會話的子代理任務.</span></p><p><span style="text-wrap-mode: nowrap;">/acp - 管理ACP會話和運行時選項.</span></p><p><span style="text-wrap-mode: nowrap;">/focus - 將當前對話線程綁定到一個會話目標.</span></p><p><span style="text-wrap-mode: nowrap;">/unfocus - 移除當前的對話線程綁定.</span></p><p><span style="text-wrap-mode: nowrap;">/agents - 列出綁定到當前線程的代理.</span></p><p><span style="text-wrap-mode: nowrap;">/kill - 終止一個(或所有)正在運行的子代理.</span></p><p><span style="text-wrap-mode: nowrap;">/steer (/tell) - 向正在運行的子代理發(fā)送引導指令.</span></p><p><span style="text-wrap-mode: nowrap;">/activation - 設置群組激活模式.</span></p><p><span style="text-wrap-mode: nowrap;">/send - 設置消息發(fā)送策略.</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><strong><span style="text-wrap-mode: nowrap;">Media 媒體工具</span></strong></p><p><span style="text-wrap-mode: nowrap;">/tts - 控制文本轉語音功能.</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><strong><span style="text-wrap-mode: nowrap;">Tools 工具與插件</span></strong></p><p><span style="text-wrap-mode: nowrap;">/skill - 按名稱運行一個特定技能.</span></p><p><span style="text-wrap-mode: nowrap;">/restart - 重啟OpenClaw系統.</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><strong><span style="text-wrap-mode: nowrap;">Docks</span></strong></p><p><span style="text-wrap-mode: nowrap;">/dock_telegram (/dock-telegram) - 切換到Telegram平臺進行回復.</span></p><p><span style="text-wrap-mode: nowrap;">/dock_discord (/dock-discord) - 切換到Discord平臺進行回復.</span></p><p><span style="text-wrap-mode: nowrap;">/dock_slack (/dock-slack) - 切換到Slack平臺進行回復.</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><strong><span style="text-wrap-mode: nowrap;">Plugins</span></strong></p><p><span style="text-wrap-mode: nowrap;">/pair (device-pair) - 生成設備配對碼并批準配對請求.</span></p><p><span style="text-wrap-mode: nowrap;">/phone (phone-control) - 啟用/禁用高風險手機節(jié)點命令(如攝像頭/屏幕/寫入操作).</span></p><p><span style="text-wrap-mode: nowrap;">/voice (talk-voice) - 列出或設置ElevenLabs語音(影響iOS語音播放).</span></p><p><br/></p>Mon, 23 Mar 2026 14:29:18 +0800
- debian系統寶塔nginx配置geoip2屏蔽國家訪問http://insta-market.com/post/2719.html<p><span style="text-wrap-mode: nowrap;">一:安裝geoip2依賴擴展</span></p><p><span style="text-wrap-mode: nowrap;">sudo apt install libmaxminddb-dev -y</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">二:下載ngx_http_geoip2_module</span></p><p><span style="text-wrap-mode: nowrap;">git clone https://github.com/leev/ngx_http_geoip2_module.git</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">三:在寶塔面板里邊安裝nginx的時候選擇編譯安裝,并手動增加擴展,安裝時候點擊啟用</span></p><p><span style="text-wrap-mode: nowrap;">模塊名稱 ngx_http_geoip2_module</span></p><p><span style="text-wrap-mode: nowrap;">模塊說明 禁用國家ip</span></p><p><span style="text-wrap-mode: nowrap;">模塊參數 --add-module=/path/to/ngx_http_geoip2_module</span></p><p><span style="text-wrap-mode: nowrap;">等待安裝后輸入 nginx -V 查看是否安裝成功</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">四:在寶塔中安裝geoip</span></p><p><span style="text-wrap-mode: nowrap;">配置nginx</span></p><p><span style="text-wrap-mode: nowrap;">在nginx配置文件中,http段加入以下代碼。以寶塔安裝的nginx為例,打開/www/server /nginx/conf/nginx.conf文件,</span></p><p><span style="text-wrap-mode: nowrap;">在http中添加</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">geoip2 /usr/share/GeoIP/Country.mmdb {</span></p><p><span style="text-wrap-mode: nowrap;"> $geoip2_data_country_code country iso_code;</span></p><p><span style="text-wrap-mode: nowrap;">}</span></p><p><span style="text-wrap-mode: nowrap;">map $geoip2_data_country_code $allowed_country {</span></p><p><span style="text-wrap-mode: nowrap;"> default yes;</span></p><p><span style="text-wrap-mode: nowrap;"> CN yes;</span></p><p><span style="text-wrap-mode: nowrap;"> JP no;</span></p><p><span style="text-wrap-mode: nowrap;"> DE no;</span></p><p><span style="text-wrap-mode: nowrap;">}</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">在站點配置文件添加:</span></p><p><span style="text-wrap-mode: nowrap;">if ($allowed_country = no) {</span></p><p><span style="text-wrap-mode: nowrap;"> return 403;</span></p><p><span style="text-wrap-mode: nowrap;">}</span></p><p><br/></p>Fri, 31 Oct 2025 16:19:52 +0800
- centos 定時執(zhí)行 think命令http://insta-market.com/post/2718.html<p>在TP5中自定義hello命令</p><p><span style="text-wrap-mode: nowrap;"><?php</span></p><p><span style="text-wrap-mode: nowrap;"> protected function configure()</span></p><p><span style="text-wrap-mode: nowrap;"> {</span></p><p><span style="text-wrap-mode: nowrap;"> $this->setName('hello') //定義命令的名字</span></p><p><span style="text-wrap-mode: nowrap;"> ->setDescription('This is my command') //定義命令的描述</span></p><p><span style="text-wrap-mode: nowrap;"> ->addArgument('name') //增加一個名字參數</span></p><p><span style="text-wrap-mode: nowrap;"> ->addArgument('age'); //增加一個年齡參數</span></p><p><span style="text-wrap-mode: nowrap;"> }</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;"> protected function execute(Input $input, Output $output)</span></p><p><span style="text-wrap-mode: nowrap;"> {</span></p><p><span style="text-wrap-mode: nowrap;"> //獲取輸入的參數</span></p><p><span style="text-wrap-mode: nowrap;"> $name = $input->getArgument('name');</span></p><p><span style="text-wrap-mode: nowrap;"> $age = $input->getArgument('age');</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;"> //輸出獲得的參數</span></p><p><span style="text-wrap-mode: nowrap;"> $output->writeln("My name is $name ,age is $age");</span></p><p><span style="text-wrap-mode: nowrap;"> }</span></p><p><br/></p><p>centos定時執(zhí)行</p><p>* * * * * php /path/to/your/project/think hello</p>Sat, 21 Jun 2025 12:45:20 +0800
- 子頁面?zhèn)鬟f參數到父頁面http://insta-market.com/post/2717.html<p>window.postMessage 是一種跨文檔通信的方法,允許來自一個文檔(例如一個網頁或Iframe)向另一個文檔發(fā)送消息。這在Iframe中使用尤其有用,因為它允許父頁面和Iframe之間的安全通信。實例中在父頁面點擊按鈕彈出子頁面窗口,子頁面窗口關閉后需要傳遞參數到父頁面。<br/></p><p><br/></p><p>父頁面</p><p>window.addEventListener('message', function(event) {</p><p><span style="white-space-collapse: preserve;"></span> if (event.data.action === 'dataFromChild') {</p><p><span style="white-space-collapse: preserve;"></span> var id = event.data.id;</p><p><span style="white-space-collapse: preserve;"></span> var sn = event.data.sn;</p><p><span style="white-space-collapse: preserve;"></span> var name = event.data.name;</p><p><span style="white-space-collapse: preserve;"></span> var price = event.data.price;</p><p><span style="white-space-collapse: preserve;"></span> var thumb = event.data.thumb;</p><p><span style="white-space-collapse: preserve;"></span> // 處理數據</p><p><span style="white-space-collapse: preserve;"></span> console.log(id);</p><p><span style="white-space-collapse: preserve;"></span> }</p><p>}, false);</p><p><br/></p><p>子頁面</p><p><br/></p><p>$(".sel").click(function(){</p><p> var id = $(this).data("id");</p><p> var sn = $(this).data("sn");</p><p> var name = $(this).data("name");</p><p> var price = $(this).data("price");</p><p> var thumb = $(this).data("thumb");</p><p> window.parent.postMessage({ action: 'dataFromChild', id: id, sn: sn, name: name, price:price, thumb:thumb }, '*');</p><p> var index = parent.layer.getFrameIndex(window.name); //獲取窗口索引</p><p> parent.layer.close(index); // 關閉layer</p><p>})</p><p><br/></p>Thu, 22 May 2025 16:32:01 +0800
- php 將 unicode 字符串轉中文的方法http://insta-market.com/post/2716.html<p>$txt = "\u7cfb\u7edf\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5";</p><p><br/></p><p>function u2c($str)</p><p>{</p><p><span style="white-space-collapse: preserve;"> </span>return preg_replace_callback(</p><p><span style="white-space-collapse: preserve;"> </span>"#\\\u([0-9a-f]{4})#i",</p><p><span style="white-space-collapse: preserve;"> </span>function ($r) {</p><p><span style="white-space-collapse: preserve;"> </span>return iconv('UCS-2BE', 'UTF-8', pack('H4', $r[1]));</p><p><span style="white-space-collapse: preserve;"> </span>},</p><p><span style="white-space-collapse: preserve;"> </span>$str</p><p><span style="white-space-collapse: preserve;"> </span>);</p><p>}</p><p><br/></p><p>echo u2c($txt);</p><p>轉后后顯示中文“系統繁忙,請稍后重試”<br/></p><p><br/></p>Sun, 18 May 2025 19:46:20 +0800
- mysql更新某個字段中要查找的字符替換成新的字符http://insta-market.com/post/2715.html<p>UPDATE news SET content = REPLACE(content, '查找的字符', '替換的字符') WHERE id>0;</p><p><br/></p><p>content 為要查找的字段</p>Mon, 05 May 2025 23:42:18 +0800
- 如何設置Win10默認輸入法是英語的http://insta-market.com/post/2714.html<p>1. 打開電腦之后,在桌面左下角點擊打開“開始”按鈕,打開“設置”選項。</p><p>2. 打開設置選項之后,在Windows設置頁面中點擊打開“時間和語言”選項。</p><p>3. 進入時間和語言設置頁面之后,在“語言”頁面中先點擊“中文”選項,再打開“選項”。</p><p>4. 進入語言選項頁面之后,在鍵盤處點擊一個輸入法,打開該輸入法下的“選項”。</p><p>5. 進入輸入法的設置頁面之后,在該頁面中點擊打開“常規(guī)”選項。</p><p>6. 進入常規(guī)設置頁面之后,打開“選擇輸入法默認模式”選項,在下拉列表中選擇“英語”選項即可。</p>Sat, 26 Apr 2025 18:29:39 +0800
- mysql 存儲過程 動態(tài)拼接參數http://insta-market.com/post/2713.html<p><span style="text-wrap-mode: nowrap;">CREATE DEFINER=`root`@`%` PROCEDURE `user`(</span></p><p> <span style="text-wrap-mode: nowrap;"> IN var_sdate int(11),</span></p><p><span style="text-wrap-mode: nowrap;"> IN var_edate int(11)</span></p><p><span style="text-wrap-mode: nowrap;">)</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">BEGIN</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">set @wsql=CONCAT(' reg_time >= ' , var_sdate , ' and reg_time <= ' , var_edate);</span></p><p><span style="text-wrap-mode: nowrap;">set @querysql=CONCAT("SELECT * FROM user where", @wsql);</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">PREPARE stmt FROM @querysql;</span></p><p><span style="text-wrap-mode: nowrap;">EXECUTE stmt;</span></p><p><span style="text-wrap-mode: nowrap;">DEALLOCATE PREPARE stmt;</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">END</span></p><p><br/></p>Sun, 20 Apr 2025 13:49:10 +0800
- centos 格式化掛載數據盤http://insta-market.com/post/2712.html<p>本示例以CentOS 7.6 64位系統為例,介紹如何在Linux服務器上使用Parted和e2fsprogs工具分區(qū)并格式化數據盤。</p><p><br/></p><p>Linux服務器上掛載的數據盤,建議您采用GPT分區(qū)格式,并采用xfs或者ext4文件系統。</p><p>1、遠程連接Linux服務器,并安裝Parted和e2fsprogs工具。</p><p>a、遠程連接服務器。</p><p>b、運行以下命令,切換為root用戶,并返回根目錄。</p><p>sudo su root</p><p>cd</p><p>c、依次運行以下命令,安裝Parted和e2fsprogs工具。</p><p>安裝Parted工具:</p><p>yum install -y parted</p><p>安裝e2fsprogs工具:</p><p>yum install -y e2fsprogs</p><p><br/></p><p>2、運行以下命令,查看服務器內的數據盤信息。</p><p>fdisk -l</p><p>查看到的數據盤信息。</p><p><br/></p><p>3、使用Parted工具為數據盤進行分區(qū)。</p><p>a、運行以下命令開始分區(qū)。</p><p>parted /dev/vdb1</p><p>b、運行以下命令,設置GPT分區(qū)。</p><p>mklabel gpt</p><p>系統將提示您轉換分區(qū)格式將導致磁盤數據丟失。本文介紹如何處理一塊全新的數據盤,因此輸入Yes即可。</p><p>c、運行以下命令,劃分一個主分區(qū),并設置分區(qū)的開始位置和結束位置。</p><p>mkpart primary 1 100%</p><p>d、運行以下命令,檢查分區(qū)是否對齊。</p><p>align-check optimal 1</p><p>e、運行以下命令,查看分區(qū)表。</p><p>print</p><p>f、運行以下命令,退出Parted工具。</p><p>quit</p><p><br/></p><p>4、運行以下命令,使系統重讀分區(qū)表。</p><p>partprobe</p><p><br/></p><p>5、運行以下命令,為/dev/vdb1分區(qū)創(chuàng)建一個文件系統。</p><p>根據您的需求運行以下任一命令,創(chuàng)建文件系統。</p><p>創(chuàng)建一個ext4文件系統。</p><p>mkfs -t ext4 /dev/vdb1</p><p>創(chuàng)建一個xfs文件系統。</p><p>mkfs -t xfs /dev/vdb1</p><p>本示例中選擇創(chuàng)建ext4文件系統。</p><p><br/></p><p>6、在/etc/fstab文件中寫入新分區(qū)信息,啟動開機自動掛載分區(qū)。</p><p>a、運行以下命令,創(chuàng)建一個名為/data的掛載點。</p><p>mkdir /data</p><p>b、運行以下命令,備份/etc/fstab。</p><p>cp /etc/fstab /etc/fstab.bak</p><p>c、運行以下命令,向/etc/fstab里寫入新分區(qū)信息。</p><p>echo `blkid /dev/vdb1 | awk '{print $2}' | sed 's/\"//g'` /data ext4 defaults 0 0 >> /etc/fstab</p><p>說明/dev/vdb1為數據盤分區(qū)設備名、/data為本示例中自定義的掛載點、ext4表示ext4文件系統,您需要根據實際情況做相應修改。</p><p>d、運行以下命令,查看/etc/fstab的信息。</p><p>cat /etc/fstab</p><p>如果返回結果里出現了寫入的新分區(qū)信息,說明寫入成功。</p><p>e、運行以下命令,使/etc/fstab中掛載數據盤的配置生效。</p><p>mount -a</p><p><br/></p><p>7、運行以下命令,查看目前磁盤空間和使用情況。</p><p>df -h</p><p>如果返回結果里出現新建文件系統的信息,說明掛載成功,您可以使用新的文件系統了。</p><p><br/></p>Fri, 04 Apr 2025 16:35:05 +0800
- uniapp 微信小程序v-model雙向綁定沖突http://insta-market.com/post/2711.html<p><br/></p><p><span style=""><input type="text" class="input-text" placeholder="請?zhí)顚戫椖棵?amp;quot; :value="info.title" @input="handleInput" data-model="title"></span></p><p><span style=""><br/></span></p><p><span style=""><br/></span></p><p><span style="">handleInput(e) {</span></p><p><span style=""> var that = this;</span></p><p><span style=""> var name = e.currentTarget.dataset.model;</span></p><p><span style=""> that.$set(that, name, e.detail.value);</span></p><p><span style="">},</span></p><p><span style="">//數組</span></p><p style="text-wrap-mode: wrap;">handleInput(e) {</p><p style="text-wrap-mode: wrap;"> var that = this;</p><p style="text-wrap-mode: wrap;"> var name = e.currentTarget.dataset.model;</p><p style="text-wrap-mode: wrap;"> that.$set(that.info, name, e.detail.value); </p><p style="text-wrap-mode: wrap;">},</p><p><br/></p>Wed, 02 Apr 2025 15:28:19 +0800