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
adba459e
Commit
adba459e
authored
5 years ago
by
shajiaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
609935e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
add.php
backend/views/application/add.php
+1
-0
edit.php
backend/views/application/edit.php
+1
-0
ApplicationBusiness.php
common/business/ApplicationBusiness.php
+2
-2
No files found.
backend/views/application/add.php
View file @
adba459e
...
...
@@ -186,6 +186,7 @@
<select
name=
"platform_type"
>
<option
value=
"1"
>
币钱包
</option>
<option
value=
"2"
>
托管账户
</option>
<option
value=
"3"
>
通用
</option>
</select>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
backend/views/application/edit.php
View file @
adba459e
...
...
@@ -188,6 +188,7 @@
<select
name=
"platform_type"
>
<option
value=
"1"
<?php
if
(
$item
[
'platform_type'
]
==
1
)
echo
"selected"
?>
>
币钱包
</option>
<option
value=
"2"
<?php
if
(
$item
[
'platform_type'
]
==
2
)
echo
"selected"
?>
>
托管账户
</option>
<option
value=
"3"
<?php
if
(
$item
[
'platform_type'
]
==
3
)
echo
"selected"
?>
>
通用
</option>
</select>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
common/business/ApplicationBusiness.php
View file @
adba459e
...
...
@@ -97,12 +97,12 @@ class ApplicationBusiness
$app_cate_Model
=
CoinAppCate
::
find
();
if
(
array_key_exists
(
'platform_id'
,
$condition
)){
$query
=
$app_cate_Model
->
JoinWith
([
'application'
],
false
)
->
select
(
'cate_id,app_id,name,icon,type,native_url,native_login_url,h5_url,android_url,ios_url,app_store_url,advertise,redirect_type,open_type_app,'
.
CoinAppCate
::
tableName
()
.
'.sort'
)
->
select
(
'cate_id,app_id,name,icon,type,native_url,native_login_url,h5_url,android_url,ios_url,app_store_url,advertise,redirect_type,open_type_app,
platform_type,
'
.
CoinAppCate
::
tableName
()
.
'.sort'
)
->
where
(
$condition
)
->
orderBy
(
CoinAppCate
::
tableName
()
.
'.sort asc'
);
}
else
{
$query
=
$app_cate_Model
->
JoinWith
([
'application'
],
false
)
->
select
(
'cate_id,app_id,name,icon,type,native_url,native_login_url,h5_url,android_url,ios_url,app_store_url,advertise,redirect_type,open_type_app,'
.
CoinAppCate
::
tableName
()
.
'.sort'
)
->
select
(
'cate_id,app_id,name,icon,type,native_url,native_login_url,h5_url,android_url,ios_url,app_store_url,advertise,redirect_type,open_type_app,
platform_type,
'
.
CoinAppCate
::
tableName
()
.
'.sort'
)
->
orderBy
(
CoinAppCate
::
tableName
()
.
'.sort asc'
);
}
...
...
This diff is collapsed.
Click to expand it.
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