fix: 【[需求确认]我的页-增值服务-高级功能-线上环境点都提示请先添加锁,不能购买(已添加有锁)】

This commit is contained in:
Liuyf 2025-04-07 09:35:44 +08:00
parent 72326851ca
commit 7f29cfcbf0

View File

@ -68,15 +68,16 @@ class _ValueAddedServicesPageListState
'高级功能'.tr, () async {
final bool? isVip = await Storage.getBool(saveIsVip);
if (isVip == null || !isVip) {
if (CommonDataManage().currentKeyInfo.isLockOwner != 1) {
logic.showToast('请先添加锁'.tr);
} else {
//
Get.toNamed(Routers.advancedFeaturesWebPage,
arguments: <String, int>{
'webBuyType': XSConstantMacro.webBuyTypeVip,
})?.then((value) => logic.getUserInfoRequest());
}
// vip状态是和账号绑定LockOwner没意义
// if (CommonDataManage().currentKeyInfo.isLockOwner != 1) {
// logic.showToast('请先添加锁'.tr);
// } else {
//
Get.toNamed(Routers.advancedFeaturesWebPage,
arguments: <String, int>{
'webBuyType': XSConstantMacro.webBuyTypeVip,
})?.then((value) => logic.getUserInfoRequest());
// }
} else {
Get.toNamed(Routers.valueAddedServicesHighFunctionPage);
}