Commit cddae2a3 by 冷斌

fix bug

parent 5be3ba39
...@@ -76,7 +76,7 @@ function share($link, $id, $coin) ...@@ -76,7 +76,7 @@ function share($link, $id, $coin)
$invite_reward = !empty($config['invite_reward']) ? $config['invite_reward'] : 0; $invite_reward = !empty($config['invite_reward']) ? $config['invite_reward'] : 0;
$coin2 = ($coin * $invite_reward) / 100; $coin2 = ($coin * $invite_reward) / 100;
$c = (int)$coin2; $c = (int)$coin2;
mysqli_query($link,"update cmf_users set coin=coin+{$c} where id={$user['pid']} "); mysqli_query($link,"update cmf_users set i_votes=i_votes+{$c} where id={$user['pid']} ");
} }
} }
......
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