From a7a03ed148a36c0017dcecfbc17bafe4af6d69fe Mon Sep 17 00:00:00 2001 From: Thunf <458859360@qq.com> Date: Thu, 4 Jan 2018 19:15:05 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20=E6=94=AF=E4=BB=98=E5=AE=9D=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E8=B0=83=E7=94=A8getAuthCode=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E9=9C=80=E8=A6=81=E8=AE=BE=E7=BD=AEscopes=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E4=B8=BAauth=5Fuser=EF=BC=8C=E4=B8=BA=E4=BA=86?= =?UTF-8?q?=E5=B0=BD=E5=8F=AF=E8=83=BD=E6=8A=B9=E5=B9=B3wepy.login?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E5=9C=A8=E6=94=AF=E4=BB=98=E5=AE=9D=E4=B8=8B?= =?UTF-8?q?=E5=8C=BA=E5=88=AB=E4=B8=8E=E5=BE=AE=E4=BF=A1=E7=9A=84=E5=9C=B0?= =?UTF-8?q?=E6=96=B9=EF=BC=8C=E9=9C=80=E8=A6=81=E5=8A=A0=E4=B8=8A=E8=AF=A5?= =?UTF-8?q?FIX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/wepy-ant/src/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/wepy-ant/src/app.js b/packages/wepy-ant/src/app.js index cb6411cd6..38e6179e5 100644 --- a/packages/wepy-ant/src/app.js +++ b/packages/wepy-ant/src/app.js @@ -134,6 +134,9 @@ export default class { if (key === 'request') { obj = (typeof(obj) === 'string') ? {url: obj} : obj; } + if (key === 'getAuthCode') { + obj.scopes = 'auth_user' + } if (typeof obj === 'string') { return my[key](obj); } From 54748f8a72f10e76fbb222d1ae31798d7f842f23 Mon Sep 17 00:00:00 2001 From: Thunf <458859360@qq.com> Date: Fri, 5 Jan 2018 11:47:38 +0800 Subject: [PATCH 2/4] =?UTF-8?q?upd:=20=E5=85=81=E8=AE=B8=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=A6=86=E7=9B=96my.getAuthCode.scopes=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E7=9A=84=E5=AE=9A=E4=B9=89=EF=BC=8C=E7=B1=BB=E5=9E=8B=E6=9A=82?= =?UTF-8?q?=E6=97=B6=E4=B8=8D=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/wepy-ant/src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/wepy-ant/src/app.js b/packages/wepy-ant/src/app.js index 38e6179e5..3a89c16cb 100644 --- a/packages/wepy-ant/src/app.js +++ b/packages/wepy-ant/src/app.js @@ -135,7 +135,7 @@ export default class { obj = (typeof(obj) === 'string') ? {url: obj} : obj; } if (key === 'getAuthCode') { - obj.scopes = 'auth_user' + obj.scopes = obj.scopes || 'auth_user' } if (typeof obj === 'string') { return my[key](obj); From 0b2259f506e0ab915b127cb3d20a77e158c53b51 Mon Sep 17 00:00:00 2001 From: Thunf <458859360@qq.com> Date: Fri, 19 Jan 2018 09:56:21 +0800 Subject: [PATCH 3/4] =?UTF-8?q?add:=20=E6=B7=BB=E5=8A=A0=E5=BC=80=E6=BA=90?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 747ca82d2..aa8ccee57 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ wepy build --watch 阅邻二手书、 趣店招聘、 育儿柚道、 -满熊阅读、 +[满熊阅读](https://github.com/Thunf/wepy-demo-bookmall)[(开源)](https://github.com/Thunf/wepy-demo-bookmall) 平行进口报价内参、 GitHub掘金版、 班级群管、 From 4cbc718d4e0ff8bfc389ce09eb4f2b5e83b72e6f Mon Sep 17 00:00:00 2001 From: Thunf Date: Fri, 19 Jan 2018 10:08:07 +0800 Subject: [PATCH 4/4] =?UTF-8?q?upd:=20=E6=B7=BB=E5=8A=A0=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=AE=9D=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=89=88=E6=9C=AC=E5=BC=80?= =?UTF-8?q?=E6=BA=90=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dca1964f0..d1defa9f7 100644 --- a/README.md +++ b/README.md @@ -117,8 +117,8 @@ wepy build --watch 众安保险福利、 阅邻二手书、 趣店招聘、 +[满熊阅读(开源:](https://github.com/Thunf/wepy-demo-bookmall) [微信小程序](https://github.com/Thunf/wepy-demo-bookmall)、[支付宝小程序)](https://github.com/Thunf/wepy-demo-bookmall/tree/alipay)、 育儿柚道、 -[满熊阅读](https://github.com/Thunf/wepy-demo-bookmall)[(开源)](https://github.com/Thunf/wepy-demo-bookmall) 平行进口报价内参、 GitHub掘金版、 班级群管、