Skip to content

Commit

Permalink
fix weixin version requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed Feb 27, 2018
1 parent f191212 commit d05f978
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ Page({

## 微信版本要求

支持微信版本 >= 6.6.3。
支持微信版本 >= 6.6.3,对应基础库版本 >= 1.9.91。

调试的时候,需要在微信开发者工具中,将“详情”下的“调试基础库”设为 1.9.91 及以上版本。

发布前,需要在 [https://mp.weixin.qq.com](https://mp.weixin.qq.com) 的“设置”页面,将“基础库最低版本设置”设为 1.9.91。当用户微信版本过低的时候,会提示用户更新。

## 暂不支持的功能

Expand Down
4 changes: 2 additions & 2 deletions ec-canvas/ec-canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ Component({
ready: function () {
const version = wx.version.version.split('.').map(n => parseInt(n, 10));
const isValid = version[0] > 1 || (version[0] === 1 && version[1] >= 9)
|| (version[0] === 1 && version [1] === 9 && version[2] >= 90);
|| (version[0] === 1 && version [1] === 9 && version[2] >= 91);
if (!isValid) {
console.error('This version of Wexin is not supported by ECharts. '
+ 'Please update Wexin with versions after 1.9.90');
+ 'Please update Wexin with versions after 1.9.91');
return;
}

Expand Down

0 comments on commit d05f978

Please sign in to comment.