Sanakey
2020-12-07 d345326c7647fa2c95816abf86f4d27cdd6abe3b
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 }