-
Notifications
You must be signed in to change notification settings - Fork 382
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
[Bug]: 其他页面 pageview 异常 || [Bug]: Pageview exception on other pages #2207
Comments
|
对于“其他页面 pageview”的情况:
返回值: {"errno":0,"errmsg":"","data":[{"time":5995},{"time":4844}]} 对于“本页面 pageview”的情况:
返回值: {"errno":0,"errmsg":"","data":[125849]} 两个返回值的 data 格式很显然是不同的。 For the case of "other page pageview":
return value: {"errno":0,"errmsg":"","data":[{"time":5995},{"time":4844}]} For the case of "this page pageview":
return value: {"errno":0,"errmsg":"","data":[125849]} The data format of the two return values is obviously different. |
Any update with this @lizheming, dpes client side code need any changes? |
@lizheming 我这两天又羊了,正难受,你看一下这个问题是 @waline/api 写的有问题还是的确需要 refine 一下服务端的 api 吧。 @lizheming I've been having trouble these past two days and I'm feeling uncomfortable. Please check if this question is written by @waline/api, or if the server-side API really needs to be refined. |
@Mister-Hope 是服务端 API 改造的问题,这个我正在纠结预期的返回格式是什么样子的,确认完之后再统一修改一下。 @Mister-Hope It’s a question of server-side API transformation. I’m struggling with what the expected return format should be. I’ll make unified changes after confirmation. |
为了统一 pageview 和 reaction 的返回格式,思考了下,最终统一按照如下结构体进行统一返回。
In order to unify the return format of pageview and reaction, I thought about it and finally unified the return according to the following structure.
|
|
@FidStyle 修了,更新到 @FidStyle fixed it and updated it to |
问题描述 | Describe the bug
复现版本为 master 分支 6c9f4f6 。后端与 https://waline.js.org/ 相同。
复现方法为,将
pnpm client:dev
的http://localhost:5173/pageview.html
改为如下所示:即可见“页面阅读量 1”与“页面阅读量 2”处出现异常。出现异常的原因是在查询其他页面的访问量时,服务端返回值与客户端预期不同。
BeiyanYunyi/sodesu@8208fae 在前端给出了一个可能的缓解或修复措施。然而,我认为服务端的接口同样需要统一。
问题网站 | Website URL
https://waline.js.org/
服务部署在哪里? | Where your waline deploy?
Vercel (Default)
数据存储在哪里?| Where your comment data store?
LeanCloud(https://leancloud.app)
Problem description | Describe the bug
The reproducible version is master branch 6c9f4f6. The backend is the same as https://waline.js.org/.
The method to reproduce is to change
http://localhost:5173/pageview.html
ofpnpm client:dev
to the following:It can be seen that there are exceptions at "Page Views 1" and "Page Views 2". The reason for the exception is that when querying the visits of other pages, the server return value is different from the client's expectation.
BeiyanYunyi/sodesu@8208fae gives a possible mitigation or fix on the front end. However, I think the server-side interface also needs to be unified.
Question Website | Website URL
https://waline.js.org/
Where is the service deployed? | Where your waline deploy?
Vercel (Default)
Where is the data stored? | Where your comment data store?
LeanCloud(https://leancloud.app)
The text was updated successfully, but these errors were encountered: