The end of the review of the party building answer mini program

Background of this article

This article is based on the party building question answering activity, which lasted from 0:00 on June 22 to 12 pm on June 30. The number of participants was 500, and the answer record was 500*9*2.

Please see Annex 1 at the end of the article for rules of activity

Sentiment

Not surprisingly, in three hours, the 9-day party building answering activity will end smoothly. Why did I use smooth instead of perfect? ​​Because there were many problems during the period, but these problems did not affect the normal answering activities Unfold.

The fairness and justice of an answering activity is the first thing. As a witness of the activity, I swear that the activity has never deliberately changed the user background answering score data, but it must be admitted that there is a certain error in the early stage of the data in use. .

The error in answering the question is caused by the user exiting the applet in the middle of the answer. If the normal answering process is followed, the data of the answering time is accurate, so for the scenario of exiting the answer in the middle, the subsequent optimization link can continue to advance

Project structure

The development of the mini program took only two days. The development of the mini program adopted cloud development, a native framework, and did not introduce any interface component libraries. In order to ensure the smooth progress of the activity, the pay-as-you-go service was opened. How to open the pay-as-you-go service for cloud development? See Annex 3

Summary of knowledge points used

1. Cloud function

The development of small programs this time relies heavily on cloud functions. A total of 13 cloud functions have been created, some of which are executed by timing triggers and some are called on the side of the applet.

In fact, small programs use cloud functions, which have the following advantages

(1) If there is a problem with the logic of the cloud function, it can be repaired in time and does not need to be reviewed. This is very important, because my answering activities will start soon

(2) The applet calls cloud functions. We can monitor the specific call parameters and response information through the cloud function logs, so there is no need to actively log information

2. Timing trigger

This knowledge point is useful in two scenarios of the applet

(1) Mainly used in the calculation of cumulative rankings. Currently, the cumulative rankings are calculated on the whole point through cloud functions, calculated 24 times a day

(2) Fix the problem of misalignment when used, and execute it at 59 minutes of each hour

 

This article content

I have also posted several articles about answering activities before the community, mainly used to record some details of the answering mini-program problem repair. This article summarizes the above.

problem

Record in the order of the questions I thought of

1. The data is not aligned when answering questions, causing confusion when sorting;

2. At the end of the answer, you can repeat the submission. Some users have two valid answer records;

3. Other style issues, such as misaligned rankings

4. Apple's mobile phone compatibility issues regarding string conversion to date

5. Cumulative ranking. When the minutes exceed 100, 0 is not added in front, which leads to disordered sorting. The problem is similar to problem 1, except that it is discovered later

6. When the question bank of the excel file is converted to json, the date will be converted into a certain timestamp, see Annex 4 for details

7、

Follow-up optimization

1. Real-time display of the total ranking bar

2. The answer interface is optimized. If the answer is correct, mark the check mark after the option, and mark the × symbol for the wrong answer

3. Increase the system automatic report export function

4. The user quits answering questions midway

5. Countdown

to sum up

Through this party building answering activity, I have really gained a lot, and invested a lot of time, and accumulated valuable experience for similar answering activities in the future. I hope that from this activity, the product can be brought to a higher level.

Remarks

I opened this small program to develop a CMS content management system through the cloud. I promised that after the event, the account number and password of the account CMS system will be opened to the outside world, for students who are not familiar with CMS

attachment1

Annex 2

Event awards (the screenshot of the picture is from another simultaneous answering activity)

Annex 3

Annex 4

Annex 5

Guess you like

Origin blog.csdn.net/qq_29528701/article/details/107051989