Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加 demo 账户 #5

Closed
UZIhuhuhu opened this issue Jan 14, 2019 · 8 comments
Closed

添加 demo 账户 #5

UZIhuhuhu opened this issue Jan 14, 2019 · 8 comments
Labels

Comments

@UZIhuhuhu
Copy link
Member

因为本项目目录里的 src/api/* 其实是被我们 gitignore 了,所以 yarn run dev 启动项目的时候,是会报错的。
所以我们需要某种方式添加 demo 账号,可以使项目启动。

@UZIhuhuhu UZIhuhuhu added help wanted Extra attention is needed 优化 and removed help wanted Extra attention is needed labels Jan 14, 2019
@ghost
Copy link

ghost commented Jan 22, 2019

小程序计算排名的方法是怎样的?我同学说他显示的是第0名?

@ghost
Copy link

ghost commented Jan 22, 2019

我没有找到相关的代码,是被gitignore了吗?

@UZIhuhuhu
Copy link
Member Author

小程序计算排名的方法是怎样的?我同学说他显示的是第0名?

那你同学是第一名,现在已经改过来了 (当时从 0 开始是当做一个 feature 了)

@UZIhuhuhu
Copy link
Member Author

我没有找到相关的代码,是被gitignore了吗?

src/edu-admin-page/pages/score-inquire.wpy 里的 281 行

this.rank = rankRes.data.data.rank;

改为

this.rank = Number(rankRes.data.data.rank) + 1;

@UZIhuhuhu
Copy link
Member Author

我没有找到相关的代码,是被gitignore了吗?

gitignore 的是 后端接口的 API ,业务代码都在。

@GooeyNyan
Copy link

GooeyNyan commented Jan 23, 2019

计算排名的逻辑当然是在后端计算的,这里是前端相关的代码,是看不到的哟。
后端业务相关的逻辑因为敏感和安全性就不方便透露了。

@UZIhuhuhu UZIhuhuhu pinned this issue Jan 24, 2019
@SoloJiang
Copy link
Member

是否需要通过集中的数据管理去实现这些?我觉得甚至在数据缓存方面也需要有集中的管理。比如我不知道现在 Storage 里面已经在代码里存在了哪些?包括所占空间。需要引入另一个 API -- wx.getStorageInfoSync()

@UZIhuhuhu
Copy link
Member Author

本学期可能会在开源版本里写上所有 API 对应的 mock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants