|
@@ -321,7 +321,7 @@ class Core
|
|
|
|
|
|
$update = array();
|
|
|
$update['where_id'] = $user['id'];
|
|
|
- $update['score'] = $user['score'] + $num;
|
|
|
+ $update['score'] = $num;
|
|
|
|
|
|
$insert = $where;
|
|
|
$insert['action_log_id'] = $log['id'];
|
|
@@ -337,7 +337,7 @@ class Core
|
|
|
$insert['id'] = Dever::db($this->user_log)->insert($insert);
|
|
|
|
|
|
if ($insert['id']) {
|
|
|
- Dever::db($this->user)->update($update);
|
|
|
+ Dever::db($this->user)->inc($update);
|
|
|
|
|
|
|
|
|
$level_type = Dever::db('score/level_type')->state();
|