Commit dd8ee783 authored by shajiaiming's avatar shajiaiming

fix

parent 2b8654fb
...@@ -132,7 +132,12 @@ class RecommendCoinController extends BaseController ...@@ -132,7 +132,12 @@ class RecommendCoinController extends BaseController
$this->msg = '参数错误'; $this->msg = '参数错误';
goto doEnd; goto doEnd;
} }
$recommend = Yii::$app->request->get('recommend', 1);
if ($recommend != 1) {
$this->code = 1;
$this->msg = '数据为空';
goto doEnd;
}
$coin_trusteeship = WalletRecommendCoin::find()->select('cid')->where(['type' => WalletRecommendCoin::TYPE_TRUSTEESHIP, 'platform_id' => $platform_id])->asArray()->all(); $coin_trusteeship = WalletRecommendCoin::find()->select('cid')->where(['type' => WalletRecommendCoin::TYPE_TRUSTEESHIP, 'platform_id' => $platform_id])->asArray()->all();
$select = ['id', 'sid', 'icon', 'name', 'introduce', 'optional_name', 'nickname', 'platform', 'chain', 'treaty']; $select = ['id', 'sid', 'icon', 'name', 'introduce', 'optional_name', 'nickname', 'platform', 'chain', 'treaty'];
......
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