Commit 1d37b49e authored by shajiaiming's avatar shajiaiming

发行平台区分大小写

parent e22b3f7e
......@@ -93,12 +93,13 @@ class CoinController extends BaseController
$data['optional_name'] = strtoupper($data['optional_name']);
}
$data['name'] = strtoupper(trim($data['name']));
$data['platform'] = strtolower($data['platform']);
$data['platform'] = $data['platform'];
$data['chain'] = strtoupper($data['chain']);
$lang = [
'zh-CN',
'en-US',
'ja'
'ja',
'ko'
];
$nickname_arr = $data['nickname'];
$introduce_arr = $data['introduce'];
......@@ -147,7 +148,7 @@ class CoinController extends BaseController
$req = Yii::$app->request;
$data = $req->post();
$data['name'] = strtoupper($data['name']);
$data['platform'] = strtolower($data['platform']);
$data['platform'] = $data['platform'];
$data['chain'] = strtoupper($data['chain']);
if (isset($data['optional_name'])) {
$data['optional_name'] = strtoupper($data['optional_name']);
......@@ -170,7 +171,8 @@ class CoinController extends BaseController
$lang = [
'zh-CN',
'en-US',
'ja'
'ja',
'ko'
];
$nickname_arr = $data['nickname'];
$introduce_arr = $data['introduce'];
......
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