Browse Source

修复没有找到介绍人

shish 6 years ago
parent
commit
619653a198
1 changed files with 2 additions and 2 deletions
  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
 	public function actionGetNewGift()
 	{
-		$introUserId = Yii::$app->request->get('introUserId', 0);
+		$introUserId = Yii::$app->request->post('introUserId', 0);
 		InviteService::getNewGift($this->user, $introUserId);
 		util::ok('领取成功');
 	}
-	
+
 }