feat: 更新用户积分逻辑

This commit is contained in:
mkm 2024-09-11 17:58:23 +08:00
parent 6b0d5e3edb
commit 40cc604461

View File

@ -67,7 +67,7 @@ class UserSignLogic extends BaseLogic
$write = self::write($order, $total_vip, 0, 1, 9);
self::write_log($write, $total_vip, 0, 7);
self::write_log($write, $total_vip, 0, 9, 0);
User::where('id', $order->uid)->inc('integral', $total_vip)->update();
User::where('id', $order->uid)->update(['integral'=>$total_vip,'first_purchase_funds'=>$order['price']]);
}
return true;
}