Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
token
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wallet
token
Commits
f45601a2
Commit
f45601a2
authored
Jun 12, 2018
by
rlgy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BTY行情
parent
08796a95
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CoinBusiness.php
common/business/CoinBusiness.php
+1
-0
CoinService.php
common/service/CoinService.php
+1
-1
No files found.
common/business/CoinBusiness.php
View file @
f45601a2
...
@@ -55,6 +55,7 @@ class CoinBusiness
...
@@ -55,6 +55,7 @@ class CoinBusiness
//获取行情信息
//获取行情信息
if
(
strtoupper
(
$value
[
'name'
])
==
'BTY'
)
{
if
(
strtoupper
(
$value
[
'name'
])
==
'BTY'
)
{
$rows
[
'data'
][
$key
][
'quotation'
]
=
CoinService
::
quotationBTY
();
$rows
[
'data'
][
$key
][
'quotation'
]
=
CoinService
::
quotationBTY
();
continue
;
}
}
$rows
[
'data'
][
$key
][
'quotation'
]
=
CoinService
::
quotation
(
$value
[
'sid'
]);
$rows
[
'data'
][
$key
][
'quotation'
]
=
CoinService
::
quotation
(
$value
[
'sid'
]);
}
}
...
...
common/service/CoinService.php
View file @
f45601a2
...
@@ -155,7 +155,7 @@ class CoinService
...
@@ -155,7 +155,7 @@ class CoinService
'circulate_count'
=>
''
,
//流通总量
'circulate_count'
=>
''
,
//流通总量
];
];
$ch
=
curl_init
(
'https://api2.mytoken.org/currency/currencydetail?com_id=bty_CNY&market_id=1303&market_name=cmc&symbol=BTY&anchor=CNY×tamp=152877
2807124&code=5384ef255744748f1a469b6514dad6ed
&v=1.4.0&platform=m&language=zh_CN&'
);
$ch
=
curl_init
(
'https://api2.mytoken.org/currency/currencydetail?com_id=bty_CNY&market_id=1303&market_name=cmc&symbol=BTY&anchor=CNY×tamp=152877
5656509&code=c368f591b57e93011cb9c853555a9126
&v=1.4.0&platform=m&language=zh_CN&'
);
curl_setopt
(
$ch
,
CURLOPT_RETURNTRANSFER
,
1
);
curl_setopt
(
$ch
,
CURLOPT_RETURNTRANSFER
,
1
);
curl_setopt
(
$ch
,
CURLOPT_HEADER
,
0
);
curl_setopt
(
$ch
,
CURLOPT_HEADER
,
0
);
$content
=
curl_exec
(
$ch
);
$content
=
curl_exec
(
$ch
);
...
...
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