Can WeChat Mini Programs identify Mini Program who the user entered from a certain scene or channel?

do you want to know whether Mini Program and Mini Program, whose users enter from a specific channel, have such a function or method


onLaunch or onShow: in app.js

onLaunch: function(options) {
    console.log(options.scene) //101
  },
  onShow: function(options) {
      console.log(options.scene)
  }
  :https://mp.weixin.qq.com/debug/wxadoc/dev/framework/app-service/scene.html

you can add parameters to the channel and judge
such as pages/index/index?source=xxx

after the page is obtained.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b9b8a7-117d2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b9b8a7-117d2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?