From 212ed891eba94c59d663c7bbbb156acdbc3a0f12 Mon Sep 17 00:00:00 2001
From: Jacob <hlnie@tohours.com>
Date: 星期二, 20 十月 2026 15:12:13 +0800
Subject: [PATCH] fix: 订单列表及商品组件处理空值展示并统一数字转换避免显示 null/NaN

---
 scripts/publish.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/publish.js b/scripts/publish.js
index bc9bf3e..ddb06f8 100644
--- a/scripts/publish.js
+++ b/scripts/publish.js
@@ -262,8 +262,8 @@
 		: '鐢� manifest.json.demo 鐢熸垚锛坅ppid ' + env.APPID + '锛岀敓鎴愮墿涓嶅叆搴擄級'));
 
 	const cliArgs = ['publish', '--platform', 'mp-weixin', '--project', ROOT].concat(passthrough);
-	// 璺緞鍚┖鏍�/涓枃锛屼氦缁� cmd 瑙f瀽鏇寸ǔ
-	const openCmd = '"' + wx.file + '" open --project "' + DIST_DIR + '"';
+	// 璺緞鍚┖鏍�/涓枃锛屼氦缁� cmd 瑙f瀽鏇寸ǔ锛�--no-open 鏃舵病鏈夊井淇″紑鍙戣�呭伐鍏凤紝涓嶆嫾杩欐潯鍛戒护锛�
+	const openCmd = wx ? '"' + wx.file + '" open --project "' + DIST_DIR + '"' : '';
 
 	if (dryRun) {
 		console.log('[release] 0) 鐢熸垚: manifest.json 鈫� manifest.json.demo' + (noGen ? '锛堝凡鎸囧畾 --no-gen锛岃烦杩囷級' : ''));

--
Gitblit v1.4.0