authen 3 år sedan
förälder
incheckning
6e4f925009
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      authen/wxlogin/wx.py
  2. 1 1
      setup.py

+ 1 - 1
authen/wxlogin/wx.py

@@ -130,7 +130,7 @@ class WeixinMP(object):
     def post(self, path, params={}, isjson=True):
         url = "{0}{1}".format(self.api_uri, path)
         if isjson:
-            resp = requests.post(url, json=params)
+            resp = requests.post(url, data=json.dumps(params))
         else:
             resp = requests.post(url, data=params)
         data = Map(resp.json())

+ 1 - 1
setup.py

@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
 
 setup(
     name='authen.wxlogin',
-    version=0.62,
+    version=0.63,
     url='http://git.trops-global.com/authen/trops_wxlogin.git',
     license='GPL',
     author='authen',