Commit 3a4e7486 by 冷斌

fix bug

parent 364edc62
...@@ -542,6 +542,8 @@ class Model_Live extends PhalApi_Model_NotORM { ...@@ -542,6 +542,8 @@ class Model_Live extends PhalApi_Model_NotORM {
->update( array('votes' => new NotORM_Literal("votes + {$anthor_total}"),'votestotal' => new NotORM_Literal("votestotal + {$total3}") )); ->update( array('votes' => new NotORM_Literal("votes + {$anthor_total}"),'votestotal' => new NotORM_Literal("votestotal + {$total3}") ));
if($anthor_total){ if($anthor_total){
$u = DI()->notorm->users->select('coin')->where('id = ' . $uid)->fetchOne(); $u = DI()->notorm->users->select('coin')->where('id = ' . $uid)->fetchOne();
var_dump($u);
die;
$insert_votes=[ $insert_votes=[
'type'=>'income', 'type'=>'income',
'action'=>$action, 'action'=>$action,
......
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