feat: personal user edition v1.0.0-user on release branch
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+17
-6
@@ -46,6 +46,7 @@
|
||||
var REC_INDUSTRY_CACHE = 'qihuo_rec_industry_v1';
|
||||
var REC_COLSPAN = 18;
|
||||
var marketNavEnabled = false;
|
||||
var userEdition = false;
|
||||
var productCategories = [];
|
||||
var POS_CACHE_KEY = 'qihuo_trading_live_v5';
|
||||
|
||||
@@ -58,6 +59,7 @@
|
||||
if (sizingMode === 'risk') sizingMode = 'amount';
|
||||
ctpAutoConnectEnabled = cfg.ctp_auto_connect !== false;
|
||||
marketNavEnabled = !!cfg.market_nav_enabled;
|
||||
userEdition = !!cfg.user_edition;
|
||||
productCategories = cfg.product_categories || [];
|
||||
window.TRADE_FIXED_LOTS = cfg.fixed_lots;
|
||||
window.TRADE_FIXED_AMOUNT = cfg.fixed_amount;
|
||||
@@ -1939,15 +1941,24 @@
|
||||
connectPositionStream();
|
||||
bindSlTpModal();
|
||||
initCtpOnLoad();
|
||||
connectRecommendStream();
|
||||
initRecommendSortControls();
|
||||
if (window.__RECOMMEND_ROWS__ && window.__RECOMMEND_ROWS__.length) {
|
||||
recRowsRaw = window.__RECOMMEND_ROWS__.slice();
|
||||
renderRecommendTable();
|
||||
if (!userEdition) {
|
||||
connectRecommendStream();
|
||||
initRecommendSortControls();
|
||||
if (window.__RECOMMEND_ROWS__ && window.__RECOMMEND_ROWS__.length) {
|
||||
recRowsRaw = window.__RECOMMEND_ROWS__.slice();
|
||||
renderRecommendTable();
|
||||
}
|
||||
}
|
||||
fetch('/api/recommend/list')
|
||||
.then(function (r) { return r.json(); })
|
||||
.then(function (data) { if (data.ok) renderRecommendations(data); })
|
||||
.then(function (data) {
|
||||
if (!data.ok) return;
|
||||
if (userEdition) {
|
||||
updateRecommendMaxMaps(data);
|
||||
return;
|
||||
}
|
||||
renderRecommendations(data);
|
||||
})
|
||||
.catch(function () {});
|
||||
updateSessionUi();
|
||||
updateRRDisplay();
|
||||
|
||||
Reference in New Issue
Block a user