@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.
- package/dist/config/shop.ts +48 -1
- package/package.json +1 -1
package/dist/config/shop.ts
CHANGED
|
@@ -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
|
+
}
|