Commit 878266a8 authored by shajiaiming's avatar shajiaiming

fix

parent d0bdfc08
......@@ -21,7 +21,7 @@ class FlashController extends BaseController
$group = Yii::$app->request->getGroup();
$platform_id = Yii::$app->request->get('platform_id', 0);
if (User::AUTH_SUPER !== $group && $platform_id != Yii::$app->request->getPlatformId()) {
if ($platform_id != Yii::$app->request->getPlatformId()) {
$msg = '暂无权限';
$code = -1;
goto doEnd;
......@@ -76,7 +76,7 @@ class FlashController extends BaseController
$group = Yii::$app->request->getGroup();
$platform_id = Yii::$app->request->get('platform_id', 0);
if (User::AUTH_SUPER !== $group && $platform_id != Yii::$app->request->getPlatformId()) {
if ($platform_id != Yii::$app->request->getPlatformId()) {
$msg = '暂无权限';
$code = -1;
goto doEnd;
......@@ -135,7 +135,7 @@ class FlashController extends BaseController
if (Yii::$app->request->isPost) {
$platform_id = Yii::$app->request->post('platform_id', 0);
if (User::AUTH_SUPER !== $group && $platform_id != Yii::$app->request->getPlatformId()) {
if (platform_id != Yii::$app->request->getPlatformId()) {
$msg = '暂无权限';
$code = -1;
goto doEnd;
......@@ -187,7 +187,7 @@ class FlashController extends BaseController
if (Yii::$app->request->isPut) {
$platform_id = Yii::$app->request->post('platform_id', 0);
if (User::AUTH_SUPER !== $group && $platform_id != Yii::$app->request->getPlatformId()) {
if ($platform_id != Yii::$app->request->getPlatformId()) {
$msg = '暂无权限';
$code = -1;
goto doEnd;
......@@ -239,7 +239,7 @@ class FlashController extends BaseController
if (Yii::$app->request->isDelete) {
$platform_id = Yii::$app->request->get('platform_id', 0);
if (User::AUTH_SUPER !== $group && $platform_id != Yii::$app->request->getPlatformId()) {
if ($platform_id != Yii::$app->request->getPlatformId()) {
$msg = '暂无权限';
$code = -1;
goto doEnd;
......@@ -292,7 +292,7 @@ class FlashController extends BaseController
$group = Yii::$app->request->getGroup();
$platform_id = Yii::$app->request->post('platform_id', 0);
if (User::AUTH_SUPER !== $group && $platform_id != Yii::$app->request->getPlatformId()) {
if ($platform_id != Yii::$app->request->getPlatformId()) {
$msg = '暂无权限';
$code = -1;
goto doEnd;
......
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