Commit 4e5dff7b authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/optimize' into 'master'

fix See merge request !467
parents 00dc7ec1 72239fa3
......@@ -107,7 +107,7 @@ class PlatformCoinsController extends BaseController
$platform_id = Yii::$app->request->post('platform_id', '');
$coins_address = Yii::$app->request->post('platform_coins', '');
$type = Yii::$app->request->post('type', '');
$type = Yii::$app->request->post('type', 0);
$contact = Yii::$app->request->post('contact', '');
if ($contact) {
$des = Yii::$app->des;
......@@ -118,7 +118,7 @@ class PlatformCoinsController extends BaseController
$version = $header['version'] ?? "";
$device = $header['device'] ?? "";
if (empty($platform_id) || empty($coins_address) || empty($type)) {
if (empty($platform_id) || empty($coins_address)) {
return ['code' => -1, 'data' => null, 'msg' => '缺少必要的参数'];
}
......
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