Commit 95576fba authored by wuxiaoli's avatar wuxiaoli

显示自选加入

parent 0246007e
...@@ -82,6 +82,7 @@ class Index extends Common ...@@ -82,6 +82,7 @@ class Index extends Common
{ {
$req = request(); $req = request();
$code = $req::instance()->param('code'); $code = $req::instance()->param('code');
$uid = $req::instance()->param('uid');
if ($code === null) { if ($code === null) {
return json(['data' => null, 'status' => 0, 'message' => '缺少参数code,操作失败']); return json(['data' => null, 'status' => 0, 'message' => '缺少参数code,操作失败']);
} }
...@@ -93,7 +94,7 @@ class Index extends Common ...@@ -93,7 +94,7 @@ class Index extends Common
$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(); $self = new StockSubAccountSelf();
$ret = $self->myadd(MID, $code);//查找是否存在 $ret = $self->myadd($uid, $code);//查找是否存在
if ($ret) { if ($ret) {
$data['myselect'] = 1; $data['myselect'] = 1;
}else{ }else{
......
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