如何施加约束,一段时间后将禁用某些功能 [英] how to impose constraint that some feature will be disabled after some time

查看:116
本文介绍了如何施加约束,一段时间后将禁用某些功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我正在制作一个应用程序,在该应用程序中,我希望该应用程序的某些功能在一段时间后(例如15天)被禁用.
我希望您能提出建议并分享您的经验,以便在该应用程序中不会留下任何漏洞.

例如:如果我要在应用程序安装当天与当前日期之间进行比较然后当计数达到15以上时,我可以禁用
在这里,我可以操纵系统日期时间,而且可以重新安装该应用程序.
另一种方式是我将存储一个将对天进行计数的计数变量,但是这里也存在每天都要使用应用程序的约束(这里我可以有一个可以将应用程序添加到其中的解决方案初创公司,但我不想这么做)

因此,朋友们,我需要在这里与您分享一些经验,这对于漏洞来说应该是不容置疑的,否则它应该足够舒缓!!!

在此先谢谢您.

hi friends,

I''m making an application in which i want some feature of that application to get disable after some time lets say 15 days.
i want you to give suggestions and share your experience regarding same, so that i will not be left with any loop hole in that application.

foreg: if I''ll use comparison between the day the application is installed with current day then when the count will reach 15 above i can disable
Here i can manipulate system date time moreover i can reinstall that application.
Other way is that I''ll store one count variable which will count the days, but here also there is constraint that application should be used everyday(Here i can have one solution that application can be added to start-up But i don''t want to do this)

So friends I need some of your experience to be shared here which can leave no stone unturned when it comes to loop hole or it should be soothing enough!!!

Thanks in Advance.

推荐答案

我建​​议您从开始的第一天开始计算15天,并将第15天保存在注册表中,并使您的应用程序始终处于启动状态,从注册簿中解析该天,并检查当前日期(是否是同一天),并且使注册簿中的日期早于当前日期.

希望这会有所帮助!
谢谢!
I suggest that you calculate 15 days from the beginning day, and save the 15th day in the registery, and make your application always on start-up parse that day from the registery, and check for the current day, if it''s the same day or not, and weather the day in registery is older than the current one.

Hope this would help!
Thank you!


这篇关于如何施加约束,一段时间后将禁用某些功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆