@conecli/cone-render 0.8.9 → 0.8.10

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.
@@ -1 +1,48 @@
1
- import { isProd, isPublishToWxapp } from '../config/env'
1
+ import { isProd, isPublishToWxapp } from '../config/env'
2
+ import { JD_DEFAULT_SHOP_LOGO } from '../common/const'
3
+ interface AppIdInfo {
4
+ appId?: string
5
+ shopId?: string
6
+ vendorId?: string
7
+ projectId?: string
8
+ pageId?: string
9
+ }
10
+ interface UserPinKeyType {
11
+ pin: string
12
+ ptkey: string
13
+ wqCookie: string
14
+ encodePin: string
15
+ }
16
+ let appIdInfo: AppIdInfo = {
17
+ appId: '',
18
+ }
19
+ let userPinKey: UserPinKeyType = {
20
+ pin: '',
21
+ encodePin: '',
22
+ ptkey: '',
23
+ wqCookie: '',
24
+ }
25
+ let appEid: string | null = ''
26
+ let jdUserLoginState = true
27
+ if (isProd) {
28
+ appIdInfo = {
29
+ appId: '',
30
+ shopId: '',
31
+ }
32
+ }
33
+ if (isProd) {
34
+ userPinKey = {
35
+ pin: '',
36
+ ptkey: '',
37
+ wqCookie: '',
38
+ encodePin: '',
39
+ }
40
+ appEid = null
41
+ jdUserLoginState = false
42
+ }
43
+ const developerPinList = []
44
+ export { userPinKey, appEid, developerPinList, jdUserLoginState }
45
+ export default {
46
+ ...appIdInfo,
47
+ defaultSquareLogo: JD_DEFAULT_SHOP_LOGO,
48
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conecli/cone-render",
3
- "version": "0.8.9",
3
+ "version": "0.8.10",
4
4
  "private": false,
5
5
  "main": "dist/open/index.ts",
6
6
  "files": [