Commit f5c74fcf authored by shajiaiming's avatar shajiaiming

增加平台是否允许转币字段

parent 62980e25
......@@ -2,6 +2,7 @@
namespace api\controllers;
use common\models\psources\CoinPlatformWithHold;
use Yii;
use api\base\BaseController;
use common\business\ExchangeBusiness;
......@@ -58,6 +59,8 @@ class WalletCoinController extends BaseController
->one();
}
if (!empty($model)) {
$lock = CoinPlatformWithHold::find()->select('lock')->where(['platform' => $model['platform']])->asArray()->one();
$model['lock'] = (int)$lock['lock'];
$this->data = array_merge($this->data, [$model]);
}
}
......
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