...
|
...
|
@@ -499,8 +499,8 @@ class Index extends Api |
|
|
$this->error('失败');
|
|
|
}else{
|
|
|
//更改用户的积分余额
|
|
|
$integral = $user['score'] - $res['integral'];
|
|
|
Db::name('user')->where('id',$user_id)->update(['score'=>$integral]);
|
|
|
$integral1 = $user['score'] - $res['integral'];
|
|
|
Db::name('user')->where('id',$user_id)->update(['score'=>$integral1]);
|
|
|
//添加积分记录
|
|
|
$record['user_id'] = $user_id;
|
|
|
$record['type'] = 2;
|
...
|
...
|
|