Commit c546baff authored by rlgy's avatar rlgy

update

parent 8a6f8d82
......@@ -107,6 +107,11 @@ class CoinController extends BaseController
}
}
}
$coin = Yii::createObject(Coin::className());
$result = $coin->updateOne($req->post());
if ($result === true) {
return ['code' => 0, 'msg' => 'succeed'];
}
}
$errors = $model->errors;
if ($errors) {
......
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