| 123456789101112131415161718192021 |
- <?php
- /**
- * Created by PhpStorm.
- * User: TF
- * Date: 2020/12/2
- * Time: 12:17
- */
- require('../init.php');
- $codeList=Stock::getStockCodeList();//获取所有股票代码
- //var_dump($codeList);
- if (empty($codeList))
- {
- throw new Exception('参数列表不能为空', 102);
- }
- //遍历股票代码
- foreach($codeList as $key => $val){
- InputTencentDay_k::get_stock_data($val["code"],$val["exchange"]);
- }
|