构建手机App的可能性 #373
2061360308
started this conversation in
Show and tell
构建手机App的可能性
#373
Replies: 1 comment
-
话题我进一步做了一些工作,http库提供接口服务,并在根目录下挂载了一个由vue驱动的web页面,这个app还运行一个安卓的前台服务用来执行选中的任务。 现状就目前来看现有接口的大部分功能都可以实现,移动端后台就能工作的方式也非常便捷。 但是也暴露出了一些问题:
class GlobalConst:
COOKIES_PATH = gender_safe_path("cookies.txt")
def get_private_storage_path():
"""
Return the path to the private storage of the app.
In android, this is the private directory of the app, in other systems, it is the project directory.
"""
if RUNNING_ON_ANDROID:
return os.environ["ANDROID_PRIVATE"]
else:
return os.path.dirname(os.path.abspath(__file__))
def gender_safe_path(path):
"""
Return the path to the private storage of the app.
"""
return os.path.join(get_private_storage_path(), path)
总结效果很好,但是需要更多人加入才可以,不然靠几个人一直肝的话希望不大。有兴趣的同学联系我,初期要做的事情很多,想合并代码还有很多工作要做。 附录,截图 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
请见我在其他地方所做的回复 #372 (comment)
我在这个测试中成功完成了学习通的登录操作,如果你也感兴趣可以按照我的操作自己进行复现。
Beta Was this translation helpful? Give feedback.
All reactions