|
|
@@ -107,38 +107,38 @@ class Input_sina_simple
|
|
|
$i = 0;
|
|
|
$index[$i]['code'] = '000001';
|
|
|
$index[$i]['name'] = '上证指数';
|
|
|
- $index[$i]['exchange'] = 'sh';
|
|
|
- $index[$i]['sector'] = 10;
|
|
|
+ $index[$i]['exchange'] = STOCK_EXCHANGE_SH;
|
|
|
+ $index[$i]['sector'] = STOCK_SECTOR_SH_MAIN;
|
|
|
|
|
|
$i++;
|
|
|
$index[$i]['code'] = '399001';
|
|
|
$index[$i]['name'] = '深成指数';
|
|
|
- $index[$i]['exchange'] = 'sz';
|
|
|
- $index[$i]['sector'] = 20;
|
|
|
+ $index[$i]['exchange'] = STOCK_EXCHANGE_SZ;
|
|
|
+ $index[$i]['sector'] = STOCK_SECTOR_SZ_MAIN;
|
|
|
|
|
|
$i++;
|
|
|
$index[$i]['code'] = '000016';
|
|
|
$index[$i]['name'] = '上证50指数';
|
|
|
- $index[$i]['exchange'] = 'sh';
|
|
|
- $index[$i]['sector'] = 10;
|
|
|
+ $index[$i]['exchange'] = STOCK_EXCHANGE_SH;
|
|
|
+ $index[$i]['sector'] = STOCK_SECTOR_SH_MAIN;
|
|
|
|
|
|
$i++;
|
|
|
$index[$i]['code'] = '399300';
|
|
|
$index[$i]['name'] = '沪深300';
|
|
|
- $index[$i]['exchange'] = 'sz';
|
|
|
- $index[$i]['sector'] = 20;
|
|
|
+ $index[$i]['exchange'] = STOCK_EXCHANGE_SZ;
|
|
|
+ $index[$i]['sector'] = STOCK_SECTOR_SZ_MAIN;
|
|
|
|
|
|
$i++;
|
|
|
$index[$i]['code'] = '399006';
|
|
|
$index[$i]['name'] = '创业板指数';
|
|
|
- $index[$i]['exchange'] = 'sz';
|
|
|
- $index[$i]['sector'] = 22;
|
|
|
+ $index[$i]['exchange'] = STOCK_EXCHANGE_SZ;
|
|
|
+ $index[$i]['sector'] = STOCK_SECTOR_SZ_CHUANGYE;
|
|
|
|
|
|
$i++;
|
|
|
$index[$i]['code'] = '000688';
|
|
|
$index[$i]['name'] = '科创50指数';
|
|
|
- $index[$i]['exchange'] = 'sh';
|
|
|
- $index[$i]['sector'] = 11;
|
|
|
+ $index[$i]['exchange'] = STOCK_EXCHANGE_SH;
|
|
|
+ $index[$i]['sector'] = STOCK_SECTOR_SH_KECHUANG;
|
|
|
|
|
|
foreach ($index as $key => $item) {
|
|
|
if (!empty($item['code'])) { //判断非法股票代码
|