diff --git a/webapp/models/Gun.php b/webapp/models/Gun.php index b0aaddb8..0733d153 100644 --- a/webapp/models/Gun.php +++ b/webapp/models/Gun.php @@ -184,7 +184,7 @@ class Gun extends BaseModel { 'createtime' => myself()->_getNowTime(), 'modifytime' => myself()->_getNowTime() ); - if (!$accountId) { + if ($accountId) { $fieldsKv['account_id'] = $accountId; } if ($tokenId) {