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
0d8d29d3
Commit
0d8d29d3
authored
Nov 23, 2018
by
ZhuChunYang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
697ccda1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
CoinController.php
backend/controllers/CoinController.php
+1
-1
CoinForm.php
backend/models/coin/CoinForm.php
+2
-0
No files found.
backend/controllers/CoinController.php
View file @
0d8d29d3
...
...
@@ -130,7 +130,7 @@ class CoinController extends BaseController
}
if
(
$can
)
{
$coin
=
Yii
::
createObject
(
Coin
::
className
());
$result
=
$coin
->
updateOne
(
$
req
->
post
()
);
$result
=
$coin
->
updateOne
(
$
data
);
if
(
$result
===
true
)
{
return
[
'code'
=>
0
,
'msg'
=>
'succeed'
];
}
...
...
backend/models/coin/CoinForm.php
View file @
0d8d29d3
...
...
@@ -82,6 +82,7 @@ class CoinForm extends Model
'area_search'
,
'publish_count'
,
'circulate_count'
,
'address'
],
'update'
=>
[
'id'
,
...
...
@@ -93,6 +94,7 @@ class CoinForm extends Model
'paper'
,
'release'
,
'platform'
,
'address'
,
'chain'
,
'price'
,
'area_search'
,
...
...
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