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
0246007e
Commit
0246007e
authored
Jun 18, 2024
by
wuxiaoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
显示自选加入
parent
348cac00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
application/market/home/Index.php
application/market/home/Index.php
+8
-1
No files found.
application/market/home/Index.php
View file @
0246007e
...
@@ -92,7 +92,14 @@ class Index extends Common
...
@@ -92,7 +92,14 @@ 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'
=>
'操作成功'
]);
}
}
...
...
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