Miniprogram: - Add BLE reconnect button on home page when disconnected - Add loading states to index, profile, subscribe-plans pages - Add profile editing (avatar + nickname) with COS upload - Enable pull-to-refresh on history page - Fix auto-scan self.options → self.data inconsistency - Add console.error to silent catch blocks - Gate 'Simple Peripheral' BLE scan behind __DEV__ flag - Add production config comment to env.js Admin console: - Add empty state '暂无数据' to all 5 list views - Replace plain text plan input with select dropdown - Add type="date" to record date filters - Add production config comment Server: - CORS origin restricted in production (env CORS_ORIGIN) - DB pool size configurable via DB_POOL_SIZE env var - .env.example updated with WeChat Pay + production fields
17 行
328 B
JavaScript
17 行
328 B
JavaScript
// Production: change to 'prod' to disable debug buttons and mock endpoints
|
|
var ENV = 'test'
|
|
|
|
var API_BASES = {
|
|
local: 'http://localhost:3000',
|
|
test: 'https://api.vsai.net.cn',
|
|
prod: 'https://api.vsai.net.cn'
|
|
}
|
|
|
|
var __DEV__ = ENV !== 'prod'
|
|
|
|
module.exports = {
|
|
ENV: ENV,
|
|
API_BASE: API_BASES[ENV],
|
|
__DEV__: __DEV__
|
|
}
|