This commit is contained in:
aozhiwei 2019-12-16 11:27:47 +08:00
parent ba7cae160b
commit a1d01c9ee6

View File

@ -400,6 +400,7 @@ class ShareController{
public function dailyReward() public function dailyReward()
{ {
error_log($_REQUEST['type']);
$account_id = $_REQUEST['account_id']; $account_id = $_REQUEST['account_id'];
//登录校验 //登录校验
$login = loginVerify($account_id, $_REQUEST['session_id']); $login = loginVerify($account_id, $_REQUEST['session_id']);
@ -425,10 +426,6 @@ class ShareController{
switch ($type) switch ($type)
{ {
case 1: //免费金币 case 1: //免费金币
if ($row['free_coin_time'] >= 5) {
phpcommon\sendError(ERR_USER_BASE + 3, '奖励已领取');
return;
}
$this->updateDailyStatus($account_id, 1); $this->updateDailyStatus($account_id, 1);
break; break;
case 2: //免费钻石 case 2: //免费钻石