Commit 1d9d16f0 by 冷斌

fix bug

parent c0cb0d9d
......@@ -401,15 +401,15 @@ class Model_User extends PhalApi_Model_NotORM
$cashvotes = $rechange['money'];
$user = DI()->notorm->users->select('votes')->where('id=?', $uid)->fetchOne();
$user = DI()->notorm->users->select('votes, i_votes, f_votes')->where('id=?', $uid)->fetchOne();
if ($source == 1 && $cashvotes > $user['votes']) {
return 2;
}
var_dump($cashvotes > $user['i_votes'], $cashvotes, $user['i_votes']);
die;
if ($source == 2 && $cashvotes > $user['i_votes']) {
var_dump($cashvotes > $user['i_votes'], $cashvotes, $user['i_votes']);
die;
return 2;
}
......
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