Commit 5ff78c55 by 冷斌

update

parent a8df4dcb
......@@ -908,7 +908,10 @@ class Model_User extends PhalApi_Model_NotORM
return 0;
}
$bonus_day = $signinfo['bonus_day'];
DI()->notorm->users->where('id=?', $uid)->update(["coin" => new NotORM_Literal("coin + {$coin}"),]);
DI()->notorm->users
->where('id = ?', $uid)
->update( array('coin' => new NotORM_Literal("coin + {$coin}") ));
/* 记录 */
$insert = [
"type" => 'income',
......
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