|
|
@@ -120,6 +120,8 @@ class UserScoreDetail extends BaseModel
|
|
|
$post['money'] = (float)(new User)->where('uid', $uid)->value('score') + $money;
|
|
|
$post['o_id'] = empty($parms["o_id"])?0:$parms["o_id"];
|
|
|
$this->insert($post);
|
|
|
+ @file_put_contents('quanju.txt', $money. "-为什么会加双倍积分呢\r\n", 8);
|
|
|
+
|
|
|
$bool = Db::name("user")->where('uid', $uid)->inc('score', floatval($money))->inc('score_in', floatval($money))->update();
|
|
|
if ($bool > 0) {
|
|
|
return true;
|