Commit d7aa4ec3 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/optimize' into 'master'

add version See merge request !482
parents 3c86636c c814125c
...@@ -137,6 +137,7 @@ class PlatformCoinsController extends BaseController ...@@ -137,6 +137,7 @@ class PlatformCoinsController extends BaseController
if (empty($coin_name) || empty($coins_address)) continue; if (empty($coin_name) || empty($coins_address)) continue;
$isExistModel = CoinPlatformCoins::find()->where(['coins_name' => $coin_name, 'coins_address' => $coins_address, 'contact' => $contact])->one(); $isExistModel = CoinPlatformCoins::find()->where(['coins_name' => $coin_name, 'coins_address' => $coins_address, 'contact' => $contact])->one();
if ($isExistModel) { if ($isExistModel) {
$isExistModel->version = $version;
$isExistModel->update_time = date('Y-m-d H:i:s'); $isExistModel->update_time = date('Y-m-d H:i:s');
$isExistModel->save(); $isExistModel->save();
} else { } else {
......
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