Commit 0d8d29d3 authored by ZhuChunYang's avatar ZhuChunYang

update

parent 697ccda1
......@@ -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'];
}
......
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment