{"action":"created","issue":{"url":"https://api.github.com/repos/xu-li/cordova-plugin-wechat/issues/277","repository_url":"https://api.github.com/repos/xu-li/cordova-plugin-wechat","labels_url":"https://api.github.com/repos/xu-li/cordova-plugin-wechat/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/xu-li/cordova-plugin-wechat/issues/277/comments","events_url":"https://api.github.com/repos/xu-li/cordova-plugin-wechat/issues/277/events","html_url":"https://github.com/xu-li/cordova-plugin-wechat/issues/277","id":187301540,"number":277,"title":"ionic 微信登陆","user":{"login":"wangwanttt","id":331398,"avatar_url":"https://avatars.githubusercontent.com/u/331398?v=3","gravatar_id":"","url":"https://api.github.com/users/wangwanttt","html_url":"https://github.com/wangwanttt","followers_url":"https://api.github.com/users/wangwanttt/followers","following_url":"https://api.github.com/users/wangwanttt/following{/other_user}","gists_url":"https://api.github.com/users/wangwanttt/gists{/gist_id}","starred_url":"https://api.github.com/users/wangwanttt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangwanttt/subscriptions","organizations_url":"https://api.github.com/users/wangwanttt/orgs","repos_url":"https://api.github.com/users/wangwanttt/repos","events_url":"https://api.github.com/users/wangwanttt/events{/privacy}","received_events_url":"https://api.github.com/users/wangwanttt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-04T10:40:51Z","updated_at":"2016-11-04T10:43:43Z","closed_at":"2016-11-04T10:43:43Z","body":"我的步骤如下：\r\n1、通过ionic 生成一个android apk包\r\n cordova run android --release\r\n2、再将 生成的 android-armv7-release-unsigned.apk ，放到jdk/bin 下 生成签名\r\njarsigner -verbose -keystore tm51App.keystore -signedjar tm51app.apk tm51.apk tm51App.keystore \r\n正在签名: classes.dex\r\n正在签名: lib/armeabi-v7a/libxwalkcore.so\r\n正在签名: lib/armeabi-v7a/libxwalkdummy.so\r\njar 已签名。\r\n\r\n3、再在ionic中\r\n  //微信登陆\r\n      $scope.weChatlogin=function()\r\n      {\r\n          var scope = \"snsapi_userinfo\",\r\n            state = \"_\" + (+new Date());\r\n          Wechat.auth(scope, state, function (response) {\r\n            // you may use response.code to get the access token.\r\n            alert(JSON.stringify(response));\r\n          }, function (reason) {\r\n            alert(\"Failed: \" + reason);\r\n          });\r\n\r\n----------- 即不报正确 也不报错误，【签名应该正确的，用签名工具得到签名填到 微信公众平了\r\nAndroid平台\r\n应用下载地址：未填写\r\n应用签名：2e4d4f465232f579aafe377a4c63931a\r\n包名：com.ionicframework.tm51】\r\n"},"comment":{"url":"https://api.github.com/repos/xu-li/cordova-plugin-wechat/issues/comments/258398102","html_url":"https://github.com/xu-li/cordova-plugin-wechat/issues/277#issuecomment-258398102","issue_url":"https://api.github.com/repos/xu-li/cordova-plugin-wechat/issues/277","id":258398102,"user":{"login":"wangwanttt","id":331398,"avatar_url":"https://avatars.githubusercontent.com/u/331398?v=3","gravatar_id":"","url":"https://api.github.com/users/wangwanttt","html_url":"https://github.com/wangwanttt","followers_url":"https://api.github.com/users/wangwanttt/followers","following_url":"https://api.github.com/users/wangwanttt/following{/other_user}","gists_url":"https://api.github.com/users/wangwanttt/gists{/gist_id}","starred_url":"https://api.github.com/users/wangwanttt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangwanttt/subscriptions","organizations_url":"https://api.github.com/users/wangwanttt/orgs","repos_url":"https://api.github.com/users/wangwanttt/repos","events_url":"https://api.github.com/users/wangwanttt/events{/privacy}","received_events_url":"https://api.github.com/users/wangwanttt/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T10:43:43Z","updated_at":"2016-11-04T10:43:43Z","body":"ionic plugin add cordova-plugin-wechat --variable wechatappid=微信appid\r\n这个搞错了，我后来又  ionic plugin add cordova-plugin-wechat --variable wechatappid=正确的appid 一次 。还改了 \r\nplugins下的  android.json 中的  wechatappid:改为正确的appid了\r\nfetch.josn 中的  wechatappid:改为正确的appid了"}}
{"actor":{"display_login":"wangwanttt"}}