Jelajahi Sumber

修复没有找到介绍人

shish 6 tahun lalu
induk
melakukan
619653a198
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      app/client/controllers/InviteController.php

+ 2 - 2
app/client/controllers/InviteController.php

@@ -31,9 +31,9 @@ class InviteController extends BaseController
 	//取新人奖励 shish 2019.12.14
 	//取新人奖励 shish 2019.12.14
 	public function actionGetNewGift()
 	public function actionGetNewGift()
 	{
 	{
-		$introUserId = Yii::$app->request->get('introUserId', 0);
+		$introUserId = Yii::$app->request->post('introUserId', 0);
 		InviteService::getNewGift($this->user, $introUserId);
 		InviteService::getNewGift($this->user, $introUserId);
 		util::ok('领取成功');
 		util::ok('领取成功');
 	}
 	}
-	
+
 }
 }