@tmsfe/tms-core 0.0.128 → 0.0.129

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmsfe/tms-core",
3
- "version": "0.0.128",
3
+ "version": "0.0.129",
4
4
  "description": "tms运行时框架",
5
5
  "repository": {
6
6
  "type": "git",
@@ -165,8 +165,9 @@ const getMycarPubOpenId = () => {
165
165
  return getMycarPubOpenIdProm;
166
166
  }
167
167
 
168
- // 优先用缓存的
169
- const key = 'tms.pubOpenId';
168
+ const { appEnv } = getApp().tms.getEnvInfo();
169
+ // 优先用缓存的,正式环境跟测试环境的不一样
170
+ const key = `tms.pubOpenId.${appEnv}`;
170
171
  const pubOpenId = wx.getStorageSync(key);
171
172
  if (pubOpenId) {
172
173
  getMycarPubOpenIdProm = Promise.resolve(pubOpenId);