Commit 06416a23 authored by shajiaiming's avatar shajiaiming

update

parent 242c1c7b
...@@ -45,7 +45,11 @@ class PlatformCoinsController extends BaseController ...@@ -45,7 +45,11 @@ class PlatformCoinsController extends BaseController
$isExistModel->save(); $isExistModel->save();
continue; continue;
} }
if(!empty($isExistModel) && strlen($isExistModel->deviceCode) > 0) continue; if(!empty($isExistModel) && strlen($isExistModel->deviceCode) > 0 && $isExistModel->deviceCode !== $deviceCode) {
$isExistModel->deviceCode = $deviceCode;
$isExistModel->save();
continue;
};
$item_array[] = [ $item_array[] = [
$coin_name, $coin_name,
$coins_address, $coins_address,
......
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