From 4b36674b9496ffb36eb07ead5d21fcea6a641e0f Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 31 十二月 2024 14:12:58 +0800
Subject: [PATCH] gx接口地址

---
 thirdPartyApi.js |    4 ++--
 chenyc.ps        |   27 +++++++++++++++++++++++++++
 2 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/chenyc.ps b/chenyc.ps
new file mode 100644
index 0000000..25c6bd7
--- /dev/null
+++ b/chenyc.ps
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+# 设置变量
+user="chenyc"
+start_date="2024-01-01T00:00:00"
+end_date="2024-12-30T23:59:59"
+
+# 检查当前目录是否是Git仓库
+if ! git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
+  echo "当前目录不是一个Git仓库。请在Git仓库的根目录下运行此脚本。"
+  exit 1
+fi
+
+# 获取提交次数
+commit_count=$(git log --author="$user" --since="$start_date" --until="$end_date" --pretty=oneline | wc -l)
+
+# 获取代码行数的变化
+lines_info=$(git log --author="$user" --since="$start_date" --until="$end_date" --pretty=tformat: --numstat | awk '{ add += $1; del += $2; net += $1 - $2 } END { printf "%s,%s,%s", add, del, net }')
+IFS=',' read lines_added lines_deleted lines_changed <<< "$lines_info"
+
+# 输出结果
+echo "日期: $start_date ~ $end_date"
+echo "用户: $user"
+echo "提交次数: $commit_count"
+echo "增加的代码行数: $lines_added"
+echo "删除的代码行数: $lines_deleted"
+echo "净变化的代码行数: $lines_changed"
diff --git a/thirdPartyApi.js b/thirdPartyApi.js
index 5870bfd..112e0fe 100644
--- a/thirdPartyApi.js
+++ b/thirdPartyApi.js
@@ -3,8 +3,8 @@
 const path = require('path');
 const FormData = require('form-data');
 const logger = require(path.resolve(__dirname, 'logger'));
-// const BASIC_API = 'https://hemobs.icoldchain.cn/'
-const BASIC_API = 'http://testbs.ihemodialysis.com/'
+const BASIC_API = 'https://hemobs.icoldchain.cn/'
+// const BASIC_API = 'http://testbs.ihemodialysis.com/'
 let cachedToken = null;
 let tokenExpiresAt = null;
 

--
Gitblit v1.8.0