Commit 3d9e6ec7 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/optimize' into develop

parents ae8c36ef eff11c27
......@@ -50,7 +50,7 @@ class NoticeController extends BaseController
if (false != $type) {
$query->andWhere(['type' => (int)$type]);
if (Notice::TOP_TRUE == (int)$type) {
if (Notice::TYPE_POP == (int)$type) {
$size = 1;
}
}
......
......@@ -13,9 +13,9 @@ use yii\helpers\ArrayHelper;
class SupportedSymbolController extends BaseController
{
public function actionIndex()
public function actionSearch()
{
$platform_id = Yii::$app->request->get('platform_id', '');
$platform_id = Yii::$app->request->get('id', '');
if (empty($platform_id)) {
$msg = '参数不能为空';
$code = -1;
......
......@@ -369,12 +369,12 @@ class IssueChainTransferController extends Controller
$model->sid = $params['name'];
$model->nickname = ['ja' => '', 'en-US' => '', 'zh-CN' => ''];
$model->platform = $params['platform'];
$model->publish_count = $params['total'] * 1e8;
$model->publish_count = $params['total'] * 1e4;
$model->chain = 'BTY';
$model->treaty = 1;
$model->save();
} else {
$model_coin->publish_count = $model_coin->publish_count + $params['total'] * 1e8;
$model_coin->publish_count = $model_coin->publish_count + $params['total'] * 1e4;
$model_coin->save();
}
}
......
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