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
3d9e6ec7
Commit
3d9e6ec7
authored
Jan 03, 2020
by
shajiaiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/optimize' into develop
parents
ae8c36ef
eff11c27
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
NoticeController.php
api/controllers/NoticeController.php
+1
-1
SupportedSymbolController.php
api/controllers/SupportedSymbolController.php
+2
-2
IssueChainTransferController.php
console/controllers/IssueChainTransferController.php
+2
-2
No files found.
api/controllers/NoticeController.php
View file @
3d9e6ec7
...
...
@@ -50,7 +50,7 @@ class NoticeController extends BaseController
if
(
false
!=
$type
)
{
$query
->
andWhere
([
'type'
=>
(
int
)
$type
]);
if
(
Notice
::
T
OP_TRUE
==
(
int
)
$type
)
{
if
(
Notice
::
T
YPE_POP
==
(
int
)
$type
)
{
$size
=
1
;
}
}
...
...
api/controllers/SupportedSymbolController.php
View file @
3d9e6ec7
...
...
@@ -13,9 +13,9 @@ use yii\helpers\ArrayHelper;
class
SupportedSymbolController
extends
BaseController
{
public
function
action
Index
()
public
function
action
Search
()
{
$platform_id
=
Yii
::
$app
->
request
->
get
(
'
platform_
id'
,
''
);
$platform_id
=
Yii
::
$app
->
request
->
get
(
'id'
,
''
);
if
(
empty
(
$platform_id
))
{
$msg
=
'参数不能为空'
;
$code
=
-
1
;
...
...
console/controllers/IssueChainTransferController.php
View file @
3d9e6ec7
...
...
@@ -369,12 +369,12 @@ class IssueChainTransferController extends Controller
$model
->
sid
=
$params
[
'name'
];
$model
->
nickname
=
[
'ja'
=>
''
,
'en-US'
=>
''
,
'zh-CN'
=>
''
];
$model
->
platform
=
$params
[
'platform'
];
$model
->
publish_count
=
$params
[
'total'
]
*
1e
8
;
$model
->
publish_count
=
$params
[
'total'
]
*
1e
4
;
$model
->
chain
=
'BTY'
;
$model
->
treaty
=
1
;
$model
->
save
();
}
else
{
$model_coin
->
publish_count
=
$model_coin
->
publish_count
+
$params
[
'total'
]
*
1e
8
;
$model_coin
->
publish_count
=
$model_coin
->
publish_count
+
$params
[
'total'
]
*
1e
4
;
$model_coin
->
save
();
}
}
...
...
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