Table of Contents
Problem Description
Solution
Conclusion
Home headlines What to do if the WeChat mini program fails the review

What to do if the WeChat mini program fails the review

Jan 18, 2018 pm 04:14 PM
Applets what to do pass

Recently, many developers have devoted themselves to the development of WeChat mini programs, and these developers always need to face the last problem: how to pass the official WeChat review in an elegant manner. This article is based on a summary submitted for review a few days ago. There are some inappropriate things in the writing. Please correct me.

Problem Description

First, let’s look at the documentation on common rejection situations on the WeChat Mini Program platform. Since the mini program I submitted contained a "Share Group" button, the review failed. The reasons for failure are as follows:

3.2.1 There are inducing behaviors in the page content of the mini program, including but Not limited to inducing sharing, inducing adding, inducing following public accounts, inducing downloading, etc., programs that require users to share, add, follow or download before they can be operated, and contain copywriting, pictures, buttons, overlays, pop-ups that explicitly or implicitly indicate or imply user sharing. Mini programs such as windows, mini programs that induce users to share and spread through profit temptations, mini programs that use exaggerated words to coerce and induce users to share, and those that force or induce users to add mini programs will all be rejected;

Is the small program that you have worked so hard to develop aborted before it was even launched? It’s simply unbearable!

Solution

I once heard a sentence: "Since I can't move you, then I choose to let myself go." So, since we can't change the constraints of official norms, then avoid Conflict with him. So the solution is roughly as follows:

  • The first step is to add a judgment mechanism to the entry file of the mini program to control the version of the mini program.

  • The second step is to write a simple version to be submitted for review.

  • The third step is to wait for the review to pass, and then switch back to the official version through the judgment mechanism set in the first step.

Next, let’s talk about how to operate it.

1. First, I created a QuickStart project, as shown below:
What to do if the WeChat mini program fails the review

2. The next step is to create the entry file, which is index. Add a judgment mechanism to wxml to control the version of the mini program. The specific code is as follows:

<!--index.wxml-->
<view class="" wx:if="{{ version == &#39;0&#39;}}" wx:key>
  <!--此处为小程序第二入口,放的是能正常通过审核的简单代码-->
  <text>hello</text>
</view>
<view class="" wx:else>
  <!--此处为小程序第一入口,放的是正式上线后的代码,也就是提交后通不过审核的代码-->
  <view class="container">
    <view class="userinfo">
      <button wx:if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button>
      <block wx:else>
        <image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" background-size="cover"></image>
        <text class="userinfo-nickname">{{userInfo.nickName}}</text>
      </block>
    </view>
    <view class="usermotto">
      <text class="user-motto">{{motto}}</text>
    </view>
  </view>
</view>
Copy after login

Then the next step is to set the version value in index.js. The specific code is as follows:

data: {
    motto: 'Hello World',
    userInfo: {},
    hasUserInfo: false,
    canIUse: wx.canIUse('button.open-type.getUserInfo'),
    version: 0
  }
Copy after login

The running result is as follows:
What to do if the WeChat mini program fails the review

3. Seeing this, the second step of writing a simple version to be submitted for review has been completed. But this is only for testing. The actual version to be submitted for review should not be too simple. I suggest that you put in a simple version that you have made before.

4. Control version switching. It can be seen from the code that the version switching depends on the value of version. Therefore, a version field can be added to the interface of the version to be submitted for review to meet the requirement of dynamically switching versions. As long as the version to be submitted for review can be approved, change the version field to a non-0 number to switch back to the official version.

Conclusion

Although this method can be used to avoid review, it is still recommended that the mini programs developed are healthy and progressive, and everyone is responsible for jointly creating a green mini program environment haha.

Related recommendations:

Chart style function implementation method of WeChat mini program process progress

Detailed explanation of the life cycle of WeChat mini program

WeChat applet realizes the sharing of methods to dynamically set page titles

Detailed example of WeChat applet uploading pictures to the server

How to build a WeChat applet server locally



Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1664
14
PHP Tutorial
1268
29
C# Tutorial
1242
24
What should I do if I forget my Ouyi Wallet mnemonic phrase? Can it still be found? What should I do if I forget my Ouyi Wallet mnemonic phrase? Can it still be found? Jul 19, 2024 pm 12:13 PM

In the Web3 world, although it is free, it is full of dangers. Therefore, the first step in the security of Ouyi wallet is to protect the private key and mnemonic phrase. Everyone knows the importance of private keys, and today the emphasis is on mnemonics. The mnemonic phrase can be understood as another form of presentation of the private key. Having the mnemonic phrase is equivalent to owning the private key and controlling the wallet assets. It is also thought that its presence is lower than that of the private key, and users may forget the mnemonic phrase of Ouyi Wallet. So what should I do if I forget the mnemonic phrase of Ouyi Wallet? Can I still retrieve my Ouyi Wallet mnemonic if I forget it? Issues that users need to pay attention to. Generally speaking, if the mnemonic phrase is forgotten, it cannot be retrieved, but try to contact the relevant customer service personnel for help. The editor below will tell you in detail. What should I do if I forget my Ouyi Wallet mnemonic phrase? If you forget the mnemonic phrase of Ouyi Wallet, please try to recall it or contact us.

What to do if pagefile.sys takes up too much space What to do if pagefile.sys takes up too much space Feb 20, 2024 am 09:01 AM

What should I do if pagefile.sys takes up too much space? In the process of using the computer, we often encounter insufficient memory. In order to solve this problem, the operating system will transfer part of the data in the memory to a special file on the disk. This file is pagefile.sys. But sometimes, we will find that the pagefile.sys file is very large and takes up too much disk space. So, how do we solve this problem? First, we need to clarify the pagefile.sys file

Solve the problem of being unable to access the Internet even though the broadband is connected (troubleshooting) Solve the problem of being unable to access the Internet even though the broadband is connected (troubleshooting) May 05, 2024 pm 06:01 PM

The Internet has become an indispensable part of people's lives in today's information age. But we can't get online, and sometimes we encounter some troubles. However, for example, the broadband is already connected. And take corresponding solution measures, we need to troubleshoot the problem step by step to restore the network connection in this case. Confirm the device connection status: Whether the mobile phone and other devices have been correctly connected to the broadband network, check the computer to ensure that the wireless network or wired network connection is normal. 2. Restart the broadband device: Reset the device and re-establish the connection, wait a few minutes and then turn it back on again. Try turning off the broadband router or modem. 3. Check the broadband account number and password: To avoid being unable to access the Internet due to incorrect account or password, make sure the broadband account number and password entered are correct. 4. Check D

What to do if snowflakes appear on your TV (A practical way to solve the problem of snowflakes on your TV) What to do if snowflakes appear on your TV (A practical way to solve the problem of snowflakes on your TV) Jun 01, 2024 pm 09:44 PM

In our daily lives, TV, as an important entertainment device, often suffers from snowflakes, which affects our viewing experience. This article will introduce you to practical methods to solve the TV snow problem and help you enjoy TV programs better. 1. Analysis of the causes of snowflake problems Snowflakes appearing on TVs are generally caused by signal interference, antenna problems or TV signal sources. 2. Check whether the antenna connection is loose. First, check whether the connection between the TV and the antenna is firm. If it is loose, plug it in again. 3. Choose a suitable antenna to ensure that the position and direction of the antenna are correct. Choosing an antenna with good performance can improve the signal reception quality. 4. Adjust the direction of the antenna. Find the best signal reception direction by rotating or adjusting the angle of the antenna. 5. Use indoor antenna signals

Implement card flipping effects in WeChat mini programs Implement card flipping effects in WeChat mini programs Nov 21, 2023 am 10:55 AM

Implementing card flipping effects in WeChat mini programs In WeChat mini programs, implementing card flipping effects is a common animation effect that can improve user experience and the attractiveness of interface interactions. The following will introduce in detail how to implement the special effect of card flipping in the WeChat applet and provide relevant code examples. First, you need to define two card elements in the page layout file of the mini program, one for displaying the front content and one for displaying the back content. The specific sample code is as follows: &lt;!--index.wxml--&gt;&l

What should I do if the software running on my win7 computer is incompatible? What should I do if the software running on my win7 computer is incompatible? Jul 13, 2023 pm 06:49 PM

What should I do if the win7 operating software is incompatible? When we copy a program from the old system to win7 for installation, it will fail to install. This is an incompatibility issue with win7 operating software. So what should I do if the win7 operating software is not compatible? Here, I will share with you solutions to the incompatibility of win7 operating software. What to do if the software running on your win7 computer is incompatible: 1. Right-click the incompatible software or program. 2. Click the Properties option in the pop-up menu list. 3. Click the Compatibility tab in the pop-up properties window. 4. Find the Run this program in compatibility mode option under the Compatibility tab. 5. Check the Run this program in compatibility mode option as shown! 6. Done! Note: This method is not valid for some software

How to copy with HP printer How to copy with HP printer Jan 06, 2024 am 08:44 AM

HP is a well-known printer brand. They have launched many different styles and models of printers, each with different functions and uses. However, the most basic functions are for printing and copying documents. Here, we take the HP printer v50157037-1 model as an example to introduce how to perform copy operations. First, make sure your HP printer is connected to a computer or network and the driver is installed. Next, open the document you want to copy and place it on the printer's scanning plate. Then, open the HP printer's control panel, which can usually be found on the printer's control panel or through the printer settings on your computer. On the control panel, you will see some buttons or menu options for

Alipay launched the 'Chinese Character Picking-Rare Characters' mini program to collect and supplement the rare character library Alipay launched the 'Chinese Character Picking-Rare Characters' mini program to collect and supplement the rare character library Oct 31, 2023 pm 09:25 PM

According to news from this site on October 31, on May 27 this year, Ant Group announced the launch of the "Chinese Character Picking Project", and recently ushered in new progress: Alipay launched the "Chinese Character Picking-Uncommon Characters" mini program to collect collections from the society Rare characters supplement the rare character library and provide different input experiences for rare characters to help improve the rare character input method in Alipay. Currently, users can enter the "Uncommon Characters" applet by searching for keywords such as "Chinese character pick-up" and "rare characters". In the mini program, users can submit pictures of rare characters that have not been recognized and entered by the system. After confirmation, Alipay engineers will make additional entries into the font library. This website noticed that users can also experience the latest word-splitting input method in the mini program. This input method is designed for rare words with unclear pronunciation. User dismantling