hh-doctor-sdk 0.5.8 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,6 +37,15 @@ function sendLog(data) {
37
37
  }
38
38
 
39
39
  function pointLog(type, content, orderId) {
40
+ const pages = getCurrentPages()
41
+ if (!pages || pages.length === 0) {
42
+ return
43
+ }
44
+ const currentPage = pages[pages.length - 1]
45
+ const route = currentPage.route
46
+ if (!route.includes('video-chat-page/video-chat-page')) {
47
+ return
48
+ }
40
49
  const isTest = cache.isTest()
41
50
  let host = isTest ? 'https://test.hh-medic.com/point-log?' : "https://sec.hh-medic.com/point-log?"
42
51
  const id = cache.getLogId() || 1
@@ -39,7 +39,7 @@ Page({
39
39
  if (judgeLogin) {
40
40
  wx.statLog.sendStatLog(null, '打开咨询单列表界面')
41
41
  const doctorId = wx.getStorageSync('doctorId') || ''
42
- console.error(`doctorId => ${doctorId}`)
42
+ // console.error(`doctorId => ${doctorId}`)
43
43
  const isTest = (getApp().globalData.profileName || 'prod') == 'test'
44
44
  cache.cache({
45
45
  isTest: isTest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hh-doctor-sdk",
3
- "version": "0.5.8",
3
+ "version": "0.6.2",
4
4
  "description": "和缓名医小程序SDK",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"