Skip to content

Commit

Permalink
PROXY remote-suggest and remote-data under stock.plusii.com
Browse files Browse the repository at this point in the history
  • Loading branch information
HeddaZ committed May 11, 2020
1 parent 02bc113 commit e85d2cd
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 10 deletions.
4 changes: 2 additions & 2 deletions ShadowStock/stock/scripts/shadowstock.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
cookieExpires: 365,
minRefreshInterval: 3000,
maxWatchingStockCount: 22,
suggestionUrl: 'http://suggest.stock.plusii.com/?type=11,12,72,73,81,31,41&key={1}&name={0}',
stockUrl: 'http://data.stock.plusii.com/?rn={0}&list={1}',
suggestionUrl: '/remote-suggest/?type=11,12,72,73,81,31,41&key={1}&name={0}',
stockUrl: '/remote-data/?rn={0}&list={1}',
stockColumns: '名称,今开,昨收,最新价,最高,最低,买入,卖出,成交量,成交额,买①量,买①,买②量,买②,买③量,买③,买④量,买④,买⑤量,买⑤,卖①量,卖①,卖②量,卖②,卖③量,卖③,卖④量,卖④,卖⑤量,卖⑤,日期,时间,市盈率'
.split(','),
/*
Expand Down
32 changes: 25 additions & 7 deletions ShadowStock/stock/web.config
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxQueryString="20480" />
</requestFiltering>
</security>
</system.webServer>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxQueryString="20480" />
</requestFiltering>
</security>
<rewrite>
<rules>
<rule name="remote-suggest" stopProcessing="false">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{REQUEST_URI}" pattern="^/remote-suggest" />
</conditions>
<action type="Rewrite" url="http://suggest2.sinajs.cn/suggest/{R:1}" />
</rule>
<rule name="remote-data" stopProcessing="false">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{REQUEST_URI}" pattern="^/remote-data" />
</conditions>
<action type="Rewrite" url="http://hq.sinajs.cn/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
2 changes: 1 addition & 1 deletion ShadowStock/stock_v1/Shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ var ColorBaseIndex = 43;
var RefreshInterval = 5000;

//股票数据定义地址格式
var StockDatasDeclareUrlFormat = "http://data.stock.plusii.com/?rn={0}&list={1}";
var StockDatasDeclareUrlFormat = "http://stock.plusii.com/remote-data/?rn={0}&list={1}";
/* 备用地址:
http://hq.sinajs.cn/rn=1111&list=sh000001,sz399001,sz399106
http://61.172.207.163/rn=1111&list=sh000001,sz399001,sz399106
Expand Down

0 comments on commit e85d2cd

Please sign in to comment.