Commit 72239fa3 authored by shajiaiming's avatar shajiaiming

fix

parent 7876e048
...@@ -107,7 +107,7 @@ class PlatformCoinsController extends BaseController ...@@ -107,7 +107,7 @@ class PlatformCoinsController extends BaseController
$platform_id = Yii::$app->request->post('platform_id', ''); $platform_id = Yii::$app->request->post('platform_id', '');
$coins_address = Yii::$app->request->post('platform_coins', ''); $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', ''); $contact = Yii::$app->request->post('contact', '');
if ($contact) { if ($contact) {
$des = Yii::$app->des; $des = Yii::$app->des;
...@@ -118,7 +118,7 @@ class PlatformCoinsController extends BaseController ...@@ -118,7 +118,7 @@ class PlatformCoinsController extends BaseController
$version = $header['version'] ?? ""; $version = $header['version'] ?? "";
$device = $header['device'] ?? ""; $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' => '缺少必要的参数']; 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