guanwei 1.2.1 → 1.2.2
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/package.json
CHANGED
package/scripts/guanwei
CHANGED
|
@@ -119,9 +119,12 @@ cmd_start() {
|
|
|
119
119
|
esac
|
|
120
120
|
done
|
|
121
121
|
if [[ ! -f "${ENV_FILE}" ]]; then
|
|
122
|
-
echo "
|
|
122
|
+
echo "ℹ️ 尚未配置模型 Key——排盘/演示等功能不受影响,仅 AI 解读不可用"
|
|
123
|
+
echo " 配置:guanwei setup --key 你的APIKey(DeepSeek 等 5 家任选)"
|
|
124
|
+
echo ""
|
|
125
|
+
else
|
|
126
|
+
set -a; source "${ENV_FILE}"; set +a
|
|
123
127
|
fi
|
|
124
|
-
set -a; source "${ENV_FILE}"; set +a
|
|
125
128
|
export PORT="${api_port}" # 后端实际监听端口
|
|
126
129
|
|
|
127
130
|
local mode_label="生产"
|
package/server/src/data/db.json
CHANGED
|
@@ -8872,6 +8872,48 @@
|
|
|
8872
8872
|
}
|
|
8873
8873
|
}
|
|
8874
8874
|
]
|
|
8875
|
+
},
|
|
8876
|
+
{
|
|
8877
|
+
"username": "联调4099",
|
|
8878
|
+
"passHash": "scrypt$ffe9ccef9ce58d258e68e97afb956f5e$0288906dd09d0b7b983f5041d512e915317c7ddf08db499211793f6a47ef03fb0d6275254028396fca7122345b4a6177e5dddd7a76d20620a369c83497f3263a",
|
|
8879
|
+
"createdAt": 1787581454289,
|
|
8880
|
+
"profile": {
|
|
8881
|
+
"birthDate": "1996-09-09",
|
|
8882
|
+
"birthHourIndex": 5,
|
|
8883
|
+
"gender": "男",
|
|
8884
|
+
"location": null
|
|
8885
|
+
},
|
|
8886
|
+
"samples": [],
|
|
8887
|
+
"records": [
|
|
8888
|
+
{
|
|
8889
|
+
"artId": "bazi",
|
|
8890
|
+
"createdAt": 1,
|
|
8891
|
+
"result": {
|
|
8892
|
+
"dayGZ": "壬申"
|
|
8893
|
+
}
|
|
8894
|
+
}
|
|
8895
|
+
]
|
|
8896
|
+
},
|
|
8897
|
+
{
|
|
8898
|
+
"username": "联调8086",
|
|
8899
|
+
"passHash": "scrypt$f26c846a54b51297e9d7e7f83e99480c$105d13df7948b9bef36444ebdb9c2baf1d698b7c7a7893baa2717af8948125f27f2c9685f51acbbbcc54f419339a1898c02378637352c1adca815f54bbb78782",
|
|
8900
|
+
"createdAt": 1787583318216,
|
|
8901
|
+
"profile": {
|
|
8902
|
+
"birthDate": "1996-09-09",
|
|
8903
|
+
"birthHourIndex": 5,
|
|
8904
|
+
"gender": "男",
|
|
8905
|
+
"location": null
|
|
8906
|
+
},
|
|
8907
|
+
"samples": [],
|
|
8908
|
+
"records": [
|
|
8909
|
+
{
|
|
8910
|
+
"artId": "bazi",
|
|
8911
|
+
"createdAt": 1,
|
|
8912
|
+
"result": {
|
|
8913
|
+
"dayGZ": "壬申"
|
|
8914
|
+
}
|
|
8915
|
+
}
|
|
8916
|
+
]
|
|
8875
8917
|
}
|
|
8876
8918
|
]
|
|
8877
8919
|
}
|
|
@@ -160,7 +160,7 @@ export function listDivinations(username: string, page = 1, pageSize = 20, profi
|
|
|
160
160
|
const where = profileId ? 'WHERE username = ? AND profile_id = ?' : 'WHERE username = ?';
|
|
161
161
|
const params = profileId ? [username, profileId] : [username];
|
|
162
162
|
const totalRow = d.prepare('SELECT COUNT(*) AS c FROM divinations ' + where).get(...params) as any;
|
|
163
|
-
const rows = d.prepare('SELECT id, art_id, question, created_at, report_json, status, profile_id FROM divinations ' + where + ' ORDER BY created_at DESC LIMIT ? OFFSET ?')
|
|
163
|
+
const rows = d.prepare('SELECT id, art_id, question, created_at, report_json, status, profile_id FROM divinations ' + where + ' ORDER BY created_at DESC, id DESC LIMIT ? OFFSET ?')
|
|
164
164
|
.all(...params, size, (pageN - 1) * size) as any[];
|
|
165
165
|
return {
|
|
166
166
|
list: rows.map(r => ({
|