$integration = 1; // 默认积分
$userinfo = $this->request->postMore([
['money_status', 0],
['money', '0'],
]);
$userinfo['adminId'] = 0;
$userinfo['integration_status'] = 1;
$userinfo['integration'] = (string)$integration;
$userinfo['is_other'] = true;
$re= $this->bill->incomeIntegral(4,'system_add',$userinfo);
return json(['code' => 200, 'msg' => '排行榜更新成功,积分测试', 'data' => [$re,$userinfo,$rank]]);
返回值 是:
{
"code": 200,
"msg": "排行榜更新成功,积分测试",
"data": [
true,
{
"money_status": 0,
"money": "0",
"adminId": 0,
"integration_status": 1,
"integration": "1",
"is_other": true
},
{
"id": 112,
"uid": 4,
"quiz_time": null,
"correct_answers": 8,
"created_at": "2024-12-16 17:22:48",
"updated_at": "0000-00-00 00:00:00",
"season": 240881
}
]
}
都正常就是积分没加上。请教下是不是我哪里不对?