How to design a review pre-release feature

Source: Internet
Author: User
Hi,all

Recently in a review of pre-release features, the demand is probably that I can be in the background for the article input comments, but these comments will not immediately appear, need to follow the set point in time to appear in the foreground (this refers to the mobile app).

Here are a few background: 1, the article table has the Comment quantity field, 2, the comment time will have the message pushes to the app.

My previous practice was to add the Effect_begin field to the comment table, and then add one more time to judge the list of comments. However, you will not be able to update the comment quantity field and push message.

I think of another way is to make a review of the status of the table, and then write a timed script, regularly write the status of the preparation of the review table, this time to trigger the update comment quantity and push the user message, just do not know this time appropriate, feel a bit heavy ...

Don't know if there's a better plan?

Reply content:

Hi,all

Recently in a review of pre-release features, the demand is probably that I can be in the background for the article input comments, but these comments will not immediately appear, need to follow the set point in time to appear in the foreground (this refers to the mobile app).

Here are a few background: 1, the article table has the Comment quantity field, 2, the comment time will have the message pushes to the app.

My previous practice was to add the Effect_begin field to the comment table, and then add one more time to judge the list of comments. However, you will not be able to update the comment quantity field and push message.

I think of another way is to make a review of the status of the table, and then write a timed script, regularly write the status of the preparation of the review table, this time to trigger the update comment quantity and push the user message, just do not know this time appropriate, feel a bit heavy ...

Don't know if there's a better plan?

Look at your problem a little dizzy, pre-release does not directly set the comment published time for the future, the display of the comments when the comment is less than the current time of the comments can not? If you want to make a push is also very simple Ah, set a scheduled task will not push and comment time less than the current time of the comments are push out successfully modified the push word Ke Weizhen, the failure is still the same old.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.