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