Commit 4ab58527 authored by ZhuChunYang's avatar ZhuChunYang

update

parent 5900266d
......@@ -122,7 +122,7 @@ class CoinController extends BaseController
$can = false;
if (Yii::$app->params['admin'] != Yii::$app->user->id) {
$coin = Coin::find()->where(['id' => $req->post('id'), 'platform_id' => $platform_id])->one();
$coin = Coin::find()->where(['id' => $req->post('id')])->andWhere(['>', "find_in_set($platform_id, platform_id)", 0])->createCommand()->getRawSql();
if ($coin) {
$can = 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