|
@@ -1690,7 +1690,7 @@ class CloudStorageView(View):
|
|
|
# 查询所有符合条件的订阅套餐的 id 列表
|
|
|
package_list = InAppPurchasePackage.objects.filter(is_ai=is_ai, package_type=1).values_list("id", flat=True)
|
|
|
# 查询用户和设备已绑定的套餐 id 列表
|
|
|
- bound_packages = DeviceApplePackage.objects.filter(userID=user_id, uid=uid).values_list("package_id", flat=True)
|
|
|
+ bound_packages = DeviceApplePackage.objects.filter(userID=user_id).values_list("package_id", flat=True)
|
|
|
# 找到未绑定的套餐 id
|
|
|
unbound_packages = set(package_list) - set(bound_packages)
|
|
|
if not unbound_packages:
|