# Upload Resource Pack

# Note

  • This feature requires the use of the latest nightly Developer Tools
  • The feature relies on the latest SDK (Android need 0.9.0 versioniOS need 0.9.6 Version)
  • This feature is only for the Professional version, and the app that has been listed is free during the open beta periodUpgrade to Professional

# Overall steps

Multi-application resource pack version management function, the overall steps are as follows:

# 1. Build and upload

  • On Developer Tools Choice The official version, andRunning on the real machine
  • to hitto construct- Upload Resource Pack
  • This feature requires the use of the latest nightly Developer Tools

<img src="https://res.wx.qq.com/op_res/f6GyaApOOOTM9ducMJSwrgJ2p8vUAonlysywXYs5xMSMh8AolhIr3xPVNyu6veAfrJC3kKwy9aBJjc21H2c-wg />

# 2, enter the resource package management

  • log in Donut Development platform, EnterMultiterminal applicationControl, re-entry.Multiple Application Details - Resource Package Management

# 3. WillDevelopment versionSet toBeta

  • When setting up a beta, you can add a test whitelistWhitelist users can get the beta code to update
  • On the white list. userid Of the use, see the following description

# 4. WillDevelopment versionorBetaSet toOnline version

  • It is possible to directlyDevelopment versionSet toOnline version, can also be placedBetaSet toOnline version
  • Set to online version, all users can get the online version of the code to update

# adopt JSAPI Set up userId

  • Interface Name: wx.miniapagesetSaaAUserId
  • Examples of use:
wx.miniapp.setSaaAUserId ({
  userId: 'userId of the user ',// Developers can customize
})

# Note:

  • userId Is used in the developer business to uniquely identify the user id
  • When the user is logged in, it is recommended that the Mini Program code wx.miniapp.setSaaAUserId Set up userId
  • After the user is logged out, you can log in by calling the wx.miniapp.setSaaAUserId ({userId: ''}) Eliminate
  • Called wx.miniapp.setSaaAUserId After that, restart. App Thereafter, it remains in effect.