Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
stock_new
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
stock_new
Commits
95576fba
Commit
95576fba
authored
Jun 18, 2024
by
wuxiaoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
显示自选加入
parent
0246007e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
application/market/home/Index.php
application/market/home/Index.php
+2
-1
No files found.
application/market/home/Index.php
View file @
95576fba
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment