Commit 0246007e authored by wuxiaoli's avatar wuxiaoli

显示自选加入

parent 348cac00
...@@ -92,6 +92,13 @@ class Index extends Common ...@@ -92,6 +92,13 @@ class Index extends Common
$p_range = $data['currency'] - $data['yesterday_price']; $p_range = $data['currency'] - $data['yesterday_price'];
$data['price_range'] = round($p_range,2); $data['price_range'] = round($p_range,2);
$data['price_rate'] = round(($p_range/$data['yesterday_price']*100),2); $data['price_rate'] = round(($p_range/$data['yesterday_price']*100),2);
$self = new StockSubAccountSelf();
$ret = $self->myadd(MID, $code);//查找是否存在
if ($ret) {
$data['myselect'] = 1;
}else{
$data['myselect'] = 0;
}
return json(['data' => $data, 'status' => 1, 'message' => '操作成功']); return json(['data' => $data, 'status' => 1, 'message' => '操作成功']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment