@yulailai/openclaw-plugin-self-growth 3.1.16 → 3.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -263,10 +263,10 @@ async function ensureInit() {
|
|
|
263
263
|
if (!email && !token && deviceId) {
|
|
264
264
|
console.log("\n╔══════════════════════════════════════╗");
|
|
265
265
|
console.log("║ 🌐 首次使用请注册/登录: ║");
|
|
266
|
-
console.log(`║ https://yulailai.com/
|
|
266
|
+
console.log(`║ https://yulailai.com/products/self-growth/connect.html?deviceId=${deviceId} ║`);
|
|
267
267
|
console.log("╚══════════════════════════════════════╝\n");
|
|
268
268
|
try {
|
|
269
|
-
require('child_process').exec(`start https://yulailai.com/
|
|
269
|
+
require('child_process').exec(`start https://yulailai.com/products/self-growth/connect.html?deviceId=${deviceId}`);
|
|
270
270
|
}
|
|
271
271
|
catch { }
|
|
272
272
|
}
|
|
@@ -531,7 +531,7 @@ export default definePluginEntry({
|
|
|
531
531
|
const contextText = typeof userMessage === 'string' ? userMessage : JSON.stringify(userMessage);
|
|
532
532
|
// 检测"登录"关键词,自动弹网页
|
|
533
533
|
if (/登录\s*self.growth|登录账号|登陆/.test(contextText)) {
|
|
534
|
-
const url = `https://yulailai.com/
|
|
534
|
+
const url = `https://yulailai.com/products/self-growth/connect.html?deviceId=${s.deviceId}`;
|
|
535
535
|
try {
|
|
536
536
|
require('child_process').exec(`start ${url}`);
|
|
537
537
|
}
|