Skip to content

Commit f8dc318

Browse files
committed
cache
1 parent 1d193e5 commit f8dc318

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ github: [https://github.com/bosspen1/stock](https://github.com/bosspen1/stock)
66
## 升级日志
77
### 升级只针对以前已经部署的朋友, 新来的朋友直接按最新步骤来就行
88

9-
-2022-05-31
10-
-- 融资融券接口
9+
-2022-08-25
10+
-- 修改redis缓存为caffeine
1111
------------
1212

1313

1414
## 项目介绍
15-
本项目偏向交易, 分析和策略这块相对不足, 大部分都是拿了然后修改, 所以没制作docker镜像
15+
本项目偏向交易, 分析和策略这块相对不足, 大部分都是拿了然后修改, 所以没制作docker镜像, python版本还没达到开源的要求,需要的可以扫最后的二维码进群索取.
1616
- 自动交易
1717
1. 股票交易接口(封装东方财富网交易, 支持a股, etf, 债券交易)
1818
2. 交易策略
@@ -37,10 +37,9 @@ github: [https://github.com/bosspen1/stock](https://github.com/bosspen1/stock)
3737
------------
3838

3939
## 所需环境
40-
- java ide
40+
- java
4141
- mysql
4242
- nodejs
43-
- redis
4443

4544
<font color="red" size=8>文档和数据库表见[wiki](https://github.com/bosspen1/stock/wiki)</font>
4645

stock-web/system/cacheList.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
{
5757
title: '名称',
5858
render: function(row) {
59-
return row.key;
59+
return row.name + ':' + row.key;
6060
}
6161
},
6262
{
@@ -68,7 +68,8 @@
6868
{
6969
title: '操作',
7070
render: function(row) {
71-
var html = ' <button class="btn btn-delete" data-key="' + row.key + '">删除</button>';
71+
var options = { name: row.name, key: row.key }
72+
var html = ' <button class="btn btn-delete" data-options=' + JSON.stringify(options) + '>删除</button>';
7273
return html;
7374
}
7475
}
@@ -80,13 +81,12 @@
8081
});
8182

8283
table.on('click', '.btn-delete', function() {
83-
var key = $(this).data('key');
84+
var cache = $(this).data('options');
85+
console.log(cache)
8486
$.ajax({
8587
url: GlobalConfig.serverUrl + '/api/system/deleteCache',
8688
type: 'POST',
87-
data: {
88-
key: key
89-
},
89+
data: cache,
9090
headers: getRequestHeaders(),
9191
error: function(xhr, status, errorThrown) {
9292
ExceptionHandler.handleCommonError(xhr);

0 commit comments

Comments
 (0)