You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
574 B
25 lines
574 B
<?php
|
|
|
|
namespace app\home\controller;
|
|
|
|
use app\home\service\StockService;
|
|
|
|
class Stock extends HomeBaseController
|
|
{
|
|
|
|
// 获取股票市场状态
|
|
public function checkMarketStatus()
|
|
{
|
|
$service = new StockService();
|
|
$result = $service->checkMarketStatus($this->request->param());
|
|
return json($result);
|
|
}
|
|
|
|
// 股票分析
|
|
public function stockAnalysis()
|
|
{
|
|
$service = new StockService();
|
|
$result = $service->stockAnalysis($this->request->userId, $this->request->param());
|
|
return json($result);
|
|
}
|
|
}
|