From c6aaf42adce93b315a1eb34ab939adc72bb11937 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期四, 27 二月 2025 14:54:06 +0800
Subject: [PATCH] 导出Excel

---
 scripts/deploy.js |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/scripts/deploy.js b/scripts/deploy.js
index b66a607..dc4b627 100644
--- a/scripts/deploy.js
+++ b/scripts/deploy.js
@@ -1,10 +1,20 @@
-const { uploadFiles, customerList } = require('./helper');
+const { uploadFiles, customerList, checkCustomer, changeBranch,deployEnv } = require('./helper');
+const { execSync } = require('child_process');
 
 if (!customerList || customerList.length === 0) {
 	logError(`璇锋纭娇鐢ㄥ懡浠� 鈥渘pm run deploy [customer1,customer2,customer3,...]鈥濓紝
 	閮ㄧ讲鍒扮敓浜х幆澧冨啓娉曪細customer:pro
 	`);
-	process.exit(1); // 閫�鍑鸿剼鏈�
+	exit(); // 閫�鍑鸿剼鏈�
 }
+const myEnv = deployEnv==='pro'?'prod':'dev'
+changeBranch();
 
-uploadFiles('npm run deploy');
+checkCustomer('npm run deploy');
+
+// uploadFiles();
+try {
+	execSync(`npx deploy ${myEnv}`, { stdio: 'inherit' });
+} catch (error) {}
+
+

--
Gitblit v1.9.3