Commit eba58e9b authored by shajiaiming's avatar shajiaiming

fix

parent 224854db
......@@ -74,7 +74,7 @@ class CoinIssueCoin extends CommonActiveRecord
return true;
}
$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();
if (false == $model) {
return true;
......@@ -95,7 +95,7 @@ class CoinIssueCoin extends CommonActiveRecord
if (CoinIssueCoin::TYPE_YES == $this->type) {
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) {
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