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
ec517a6e
Commit
ec517a6e
authored
Oct 28, 2020
by
shajiaiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/optimize' into 'master'
add new column See merge request
!399
parents
40b21180
61073582
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
WalletCoinController.php
api/controllers/WalletCoinController.php
+2
-2
No files found.
api/controllers/WalletCoinController.php
View file @
ec517a6e
...
@@ -49,7 +49,7 @@ class WalletCoinController extends BaseController
...
@@ -49,7 +49,7 @@ class WalletCoinController extends BaseController
foreach
(
$condition
as
$val
)
{
foreach
(
$condition
as
$val
)
{
if
(
is_array
(
$val
))
{
if
(
is_array
(
$val
))
{
$model
=
WalletCoin
::
find
()
->
select
(
'id,icon,name,nickname,introduce,platform,chain,address as contract_address,treaty'
)
$model
=
WalletCoin
::
find
()
->
select
(
'id,icon,name,nickname,
optional_name,
introduce,platform,chain,address as contract_address,treaty'
)
->
where
([
'name'
=>
$val
[
0
],
'platform'
=>
$val
[
1
]])
->
where
([
'name'
=>
$val
[
0
],
'platform'
=>
$val
[
1
]])
->
andWhere
([
'>'
,
"find_in_set(
$platform_id
, platform_id)"
,
0
])
->
andWhere
([
'>'
,
"find_in_set(
$platform_id
, platform_id)"
,
0
])
->
asArray
()
->
asArray
()
...
@@ -57,7 +57,7 @@ class WalletCoinController extends BaseController
...
@@ -57,7 +57,7 @@ class WalletCoinController extends BaseController
}
}
if
(
is_string
(
$val
))
{
if
(
is_string
(
$val
))
{
$model
=
WalletCoin
::
find
()
->
select
(
'id,icon,name,nickname,introduce,platform,chain,address as contract_address,treaty'
)
$model
=
WalletCoin
::
find
()
->
select
(
'id,icon,name,nickname,
optional_name,
introduce,platform,chain,address as contract_address,treaty'
)
->
where
([
'name'
=>
$val
])
->
where
([
'name'
=>
$val
])
->
andWhere
([
'>'
,
"find_in_set(
$platform_id
, platform_id)"
,
0
])
->
andWhere
([
'>'
,
"find_in_set(
$platform_id
, platform_id)"
,
0
])
->
asArray
()
->
asArray
()
...
...
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