hh-doctor-sdk 0.0.4 → 0.0.5

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.
@@ -84,8 +84,15 @@ module.exports = Behavior({
84
84
  orderStatusTips = '待付款'
85
85
  }
86
86
  let provideTime = null
87
- if (order.provideTime && order.provideTime > 0) {
88
- provideTime = `视频时间:${dateFormat.format(new Date(order.provideTime), 'yyyy-MM-dd hh:mm')}`
87
+ let timeTitle = ''
88
+ if (provideType === 'video') {
89
+ timeTitle = '视频时间'
90
+ } else if (provideType === 'feidao') {
91
+ timeTitle = '手术时间'
92
+ }
93
+ const isVideoFinish = order.isVideoFinish || false
94
+ if (order.provideTime && order.provideTime > 0 && !isVideoFinish) {
95
+ provideTime = `${timeTitle}:${dateFormat.format(new Date(order.provideTime), 'yyyy-MM-dd hh:mm')}`
89
96
  }
90
97
  return {
91
98
  provideType: provideType,
@@ -3,6 +3,7 @@ const appID = '10423'
3
3
  const appKey = ''
4
4
  const appSecret = 'N0e7293NSF8nBZjO'
5
5
  const sessionId = '1776843236242882600'
6
+ const sessionIdProd = '1792831747042312418'
6
7
 
7
8
  module.exports = {
8
9
  appVersion,
@@ -10,4 +11,5 @@ module.exports = {
10
11
  appKey,
11
12
  appSecret,
12
13
  sessionId,
14
+ sessionIdProd,
13
15
  }
@@ -45,7 +45,7 @@ function _request(request, method, params, data) {
45
45
  if (uuid) {
46
46
  fullParams.uuid = uuid
47
47
  }
48
- fullParams.session_id = appConfig.sessionId
48
+ fullParams.session_id = cache.isTest() ? appConfig.sessionId : appConfig.sessionIdProd
49
49
  fullParams.random = new Date().getTime()
50
50
 
51
51
  for (let [key, value] of Object.entries(fullParams)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hh-doctor-sdk",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "和缓名医小程序SDK",
5
5
  "devDependencies": {},
6
6
  "scripts": {