Commit eba58e9b authored by shajiaiming's avatar shajiaiming

fix

parent 224854db
...@@ -74,7 +74,7 @@ class CoinIssueCoin extends CommonActiveRecord ...@@ -74,7 +74,7 @@ class CoinIssueCoin extends CommonActiveRecord
return true; return true;
} }
$model = CoinIssueCoin::find() $model = CoinIssueCoin::find()
->where(['name' => $this->name, 'platform_id' => $this->platform_id, 'status' => CoinIssueCoin::STATUS_SUCCESS]) ->where(['name' => $this->name, 'owner' => $this->owner, 'status' => CoinIssueCoin::STATUS_SUCCESS])
->orderBy('id desc')->one(); ->orderBy('id desc')->one();
if (false == $model) { if (false == $model) {
return true; return true;
...@@ -95,7 +95,7 @@ class CoinIssueCoin extends CommonActiveRecord ...@@ -95,7 +95,7 @@ class CoinIssueCoin extends CommonActiveRecord
if (CoinIssueCoin::TYPE_YES == $this->type) { if (CoinIssueCoin::TYPE_YES == $this->type) {
return true; return true;
} }
$model = CoinIssueCoin::find()->where(['symbol' => $this->symbol, 'platform_id' => $this->platform_id, 'status' => CoinIssueCoin::STATUS_SUCCESS])->orderBy('id desc')->one(); $model = CoinIssueCoin::find()->where(['symbol' => $this->symbol, 'owner' => $this->owner, 'status' => CoinIssueCoin::STATUS_SUCCESS])->orderBy('id desc')->one();
if (false == $model) { if (false == $model) {
return true; return true;
} }
......
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