1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
| interface extInfo {
| HttpHost: string;
| WssHost: string;
| AppId: string;
| FromUserId: string;
| }
|
| const config: extInfo = wx.getExtConfigSync() as unknown as extInfo;
| // config: extInfo;
| // const config = {
| // httpBaseUrl: wx.getExtConfigSync().HttpHost,
| // wssBaseUrl: wx.getExtConfigSync().WssHost,
| // AppId: wx.getExtConfigSync().AppId,
| // }
|
| export { config }
|
|