|
@@ -76,7 +76,7 @@ class WeixinLogin(object):
|
|
|
def __init__(self, app=None, prefix=""):
|
|
|
if app:
|
|
|
self.app_id = app.config.get(prefix + "WXMP_APP_ID")
|
|
|
- print(self.app_id, "fdsafdafdsafsa")
|
|
|
+ # print(self.app_id)
|
|
|
self.app_secret = app.config.get(prefix + "WXMP_APP_SECRET")
|
|
|
else:
|
|
|
self.app_id = ""
|
|
@@ -84,7 +84,6 @@ class WeixinLogin(object):
|
|
|
|
|
|
def init_app(self, app, prefix=""):
|
|
|
self.app_id = app.config.get(prefix + "WXMP_APP_ID")
|
|
|
- print(self.app_id, "fdsafdafdsafsa")
|
|
|
self.app_secret = app.config.get(prefix + "WXMP_APP_SECRET")
|
|
|
|
|
|
def _get(self, url, params):
|
|
@@ -109,7 +108,6 @@ class WeixinLogin(object):
|
|
|
else:
|
|
|
url = "https://open.weixin.qq.com/connect/oauth2/authorize"
|
|
|
data = dict()
|
|
|
- print(self.app_id, "4444444")
|
|
|
data.setdefault("appid", self.app_id)
|
|
|
data.setdefault("redirect_uri", redirect_uri)
|
|
|
data.setdefault("response_type", "code")
|