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
ea87f889
Commit
ea87f889
authored
Nov 29, 2019
by
shajiaiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/issue_coin' into develop
parents
96d92939
2993cce3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
CoinController.php
api/controllers/CoinController.php
+1
-1
ExploreApp.php
common/models/psources/ExploreApp.php
+2
-1
ZhaobiBuilder.php
common/service/exchange/factory/ZhaobiBuilder.php
+1
-1
IssueChainTransferController.php
console/controllers/IssueChainTransferController.php
+1
-1
No files found.
api/controllers/CoinController.php
View file @
ea87f889
...
@@ -260,7 +260,7 @@ class CoinController extends BaseController
...
@@ -260,7 +260,7 @@ class CoinController extends BaseController
$value
[
'chain_quotation'
]
=
$chain_quotation
[
$value
[
'chain'
]]
?:
null
;
$value
[
'chain_quotation'
]
=
$chain_quotation
[
$value
[
'chain'
]]
?:
null
;
$value
[
'chain_rmb'
]
=
isset
(
$value
[
'chain_quotation'
][
'rmb'
])
?
$value
[
'chain_quotation'
][
'rmb'
]
:
0
;
$value
[
'chain_rmb'
]
=
isset
(
$value
[
'chain_quotation'
][
'rmb'
])
?
$value
[
'chain_quotation'
][
'rmb'
]
:
0
;
$value
[
'chain_usd'
]
=
isset
(
$value
[
'chain_quotation'
][
'usd'
])
?
$value
[
'chain_quotation'
][
'usd'
]
:
0
;
$value
[
'chain_usd'
]
=
isset
(
$value
[
'chain_quotation'
][
'usd'
])
?
$value
[
'chain_quotation'
][
'usd'
]
:
0
;
$value
[
'chain_country_rate'
]
=
(
float
)
sprintf
(
"%0.4f"
,
$last
[
0
]
*
$value
[
'chain_rmb'
]);
#
$value['chain_country_rate'] = (float)sprintf("%0.4f", $last[0] * $value['chain_rmb']);
$value
[
'country_rate'
]
=
(
false
==
$currency
)
?
$value
[
'chain_rmb'
]
:
(
float
)
sprintf
(
"%0.4f"
,
$last
[
0
]
*
$value
[
'rmb'
]);
$value
[
'country_rate'
]
=
(
false
==
$currency
)
?
$value
[
'chain_rmb'
]
:
(
float
)
sprintf
(
"%0.4f"
,
$last
[
0
]
*
$value
[
'rmb'
]);
}
}
return
$result
;
return
$result
;
...
...
common/models/psources/ExploreApp.php
View file @
ea87f889
...
@@ -30,9 +30,10 @@ class ExploreApp extends BaseActiveRecord
...
@@ -30,9 +30,10 @@ class ExploreApp extends BaseActiveRecord
public
function
rules
()
public
function
rules
()
{
{
return
[
return
[
[[
'name'
,
'icon'
,
'app_url'
,
'
slogan'
,
'
type'
,
'sort'
,
'status'
,
'platform_id'
,
'app_category_id'
],
'required'
],
[[
'name'
,
'icon'
,
'app_url'
,
'type'
,
'sort'
,
'status'
,
'platform_id'
,
'app_category_id'
],
'required'
],
[[
'type'
,
'sort'
,
'status'
,
'platform_id'
,
'app_category_id'
],
'integer'
],
[[
'type'
,
'sort'
,
'status'
,
'platform_id'
,
'app_category_id'
],
'integer'
],
[
'slogan'
,
'string'
,
'max'
=>
50
],
[
'slogan'
,
'string'
,
'max'
=>
50
],
[[
'slogan'
],
'safe'
],
[[
'icon'
],
'url'
]
[[
'icon'
],
'url'
]
];
];
}
}
...
...
common/service/exchange/factory/ZhaobiBuilder.php
View file @
ea87f889
...
@@ -108,7 +108,7 @@ class ZhaobiBuilder extends FactoryService
...
@@ -108,7 +108,7 @@ class ZhaobiBuilder extends FactoryService
if
(
2
==
count
(
$explode_arr
)
&&
empty
(
$explode_arr
[
1
]))
{
if
(
2
==
count
(
$explode_arr
)
&&
empty
(
$explode_arr
[
1
]))
{
$temp
[
'close_rmb'
]
=
(
float
)
sprintf
(
"%0.4f"
,
$close
*
$this
->
basic_price
[
$coin
][
'rmb'
]);
$temp
[
'close_rmb'
]
=
(
float
)
sprintf
(
"%0.4f"
,
$close
*
$this
->
basic_price
[
$coin
][
'rmb'
]);
}
}
if
(
'SFTCNY'
==
strtoupper
(
$symbol
))
{
if
(
'SFTCNY'
==
strtoupper
(
$symbol
)
||
'BTYCCNY'
==
strtoupper
(
$symbol
)
||
'USDTCCNY'
==
strtoupper
(
$symbol
)
)
{
$temp
[
'close_rmb'
]
=
(
float
)
sprintf
(
"%0.4f"
,
$close
*
1
);
$temp
[
'close_rmb'
]
=
(
float
)
sprintf
(
"%0.4f"
,
$close
*
1
);
}
}
}
}
...
...
console/controllers/IssueChainTransferController.php
View file @
ea87f889
...
@@ -81,7 +81,7 @@ class IssueChainTransferController extends Controller
...
@@ -81,7 +81,7 @@ class IssueChainTransferController extends Controller
}
}
$txHex
=
$result
[
'result'
];
$txHex
=
$result
[
'result'
];
$privkey
=
'8ac19c0b8858ccd6ed34e2bce0f11be2fc696e658d0b98fb1d3ef85ec5a3992c'
;
$privkey
=
Yii
::
$app
->
params
[
'chain_nodes'
][
strtoupper
(
$platform
->
platform
)][
'privkey'
]
;
$expire
=
'1m'
;
$expire
=
'1m'
;
//执行1.2签名
//执行1.2签名
$signRawTx
=
$chain_service
->
signRawTx
(
$privkey
,
$txHex
,
$expire
);
$signRawTx
=
$chain_service
->
signRawTx
(
$privkey
,
$txHex
,
$expire
);
...
...
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