Commit 0d24344b by 冷斌

update

parent 72afc38d
......@@ -833,10 +833,10 @@ class Model_User extends PhalApi_Model_NotORM
/* 获取登录奖励 */
public function getLoginBonus($uid)
{
$rs = 0;
$coin = 0;
$configpri = getConfigPri();
if (!$configpri['bonus_switch']) {
return $rs;
return $coin;
}
/* 获取登录设置 */
......@@ -908,10 +908,9 @@ class Model_User extends PhalApi_Model_NotORM
];
DI()->notorm->users_coinrecord->insert($insert);
}
$rs = 1;
}
return $rs;
return $coin;
}
......
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